how can I add a <br /> after each link which are image containers ?
with
<a href="#"><img src="" alt="" /></a>
i want to get
<a href="#"><img src="" alt="" /><br /></a>
I have tried with :after but I cannot get it
thank you for helping
how can I add a <br /> after each link which are image containers ?
with
<a href="#"><img src="" alt="" /></a>
i want to get
<a href="#"><img src="" alt="" /><br /></a>
I have tried with :after but I cannot get it
thank you for helping
set the images to a class
replace
withCode:<a href="#"><img src="" alt="" /></a>
Code:<a href="#"><img src="" alt="" class="img_link" /></a>
and add the following CSS code to your stylesheet (changing the margin height to your needs):
Code:.img_link { margin-bottom:20px; }
You can't. :after is not supported by IE. You can do:... but this will also "add a linebreak" before the image.Code:a img { display: block; }
Beware those XHTML-like slashes: they probably don't mean what you think they mean. Read: http://www.webdevout.net/articles/beware-of-xhtml, http://www.hixie.ch/advocacy/xhtml.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Does that really matter? People will still be using IE7 and even IE6.
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Bookmarks