...

Multiline Indent.

muneeba9071
07-07-2011, 04:50 PM
Hi,

I have the following long text link:


<a href="#">This is a long link blah blah</a>


Here is the CSS:

a {
margin-left: 4px;
}


The problem is the box is not wide enough to cover the whole link, thus its dropping to the next line. Like this:


This is a long link
blah blah


I really need it to look like:


This is a long link
blah blah


Many Thanks!:thumbsup:

alykins
07-07-2011, 04:58 PM
put it inside a block element like a <p> (my option)

muneeba9071
07-07-2011, 04:59 PM
It's already in <a> tag.

abduraooft
07-07-2011, 04:59 PM
.my_p{
padding-left:4px;
}
<p class="my_p">This is a long link blah blah</p>

It's already in <a> tag.
Then, set display:block; to it.

PS: Do you know the difference between inline and block level elements?

alykins
07-07-2011, 05:01 PM
put it inside a block element like a <p> (my option)

block element... the <a> tag is inline



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum