Visualizzazione 6 filoni di risposte
Visualizzazione 6 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › margini immagini
Ciao a tutti vorrei sapere come togliere i margini alle immagini che inserisco nel blog..
ho letto che basterebbe inserire nel css questa riga – img { border: none; } –
e se si, in quale punto ??’
grazie
Dopo un’eventuale regola che invece assegna i margini alle immagini. Mettilo alla fine e vai sul sicuro.
ps: la regola da te postata toglie i bordi, per i margini devi usare img{margin:0} [ma l’effetto sarà penoso..]
quindi…per eliminare il quadrato attorno all’immagine cosa mi suggerisci…?
Se si tratta di quadrato attorno immagino sia il bordo, quindi prova con border:none.
Sicuramente sta parlando del bordo, invece di inserire proprio la stringa potresti provare a ricercare nel css la parola “border”, trovare quella che si riferisce alle immagini e modificarla inserendo “none” in questo modo il css risulta più pulito e non vorrei che avendo due funzioni che agiscono sullo stesso attributo mandi qualcosa in conflitto causando problemi di visualizzazione, comunque puoi provare entrambi i metodi, alla fine basta fare una copia del file originale e si rimette tutto apposto in due secondi in caso di problemi
Senza dubbio cercare la regola e modificarla è meglio, ma non potrebbero esserci conflitti in quando l’ultima regola va a riscrivere le precedenti.
Hai ragione torejx, mi sono salvato con la questione di mantenere il codice il più pulito possibile
PS Per questo consiglio csscleaner che da una bella alleggerita ai file css!
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0