Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: not2easy
Im trying to put an image before or after a link to give my visitors the idea what is about, example yahoo, left column services.
background-image: url(images/ex.gif );
<div class="ex" title=""><a href="red-widgets/">Red widgets</a></div>
My problem is when i use it in the middle of a sentence it goes the next line after i close div instead keep going on same line
is a block-level element, so the browser is behaving correctly in this instance. If you want to have this occur inline, then you must use an inline-element such as a
, for example:
Some text<[b]span[/b] class="ex" title=""><a href="red-widgets/">Red widgets</a><[b]/span[/b]>some text.
Of course, it may not be necessary to add the extra
at all - have you tried applying the styles directly to the anchor itself?
Some text <a [b]class="ex"[/b] href="red-widgets/">Red widgets</a> some text.