FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

<hr /> Help - The spacing around it.

 


Hogwarts
Does anybody know how to get rid of the spacing above and below the <hr /> tag? I've tried to use CSS to get rid of it, but so far I haven't managed to. I am sure there is a way to do it... I just can't remember how. I've tried "padding:0px", "margin:0px;", etc. but haven't got it Sad

Example:


Last edited by Hogwarts on Tue Jan 23, 2007 2:18 am; edited 1 time in total
Maxus
Are you sure the margin from the object above your div is zero?
AOP Web Development
you have to make declare the div with margin:0;padding:0;
Hogwarts
AOP Web Development wrote:
you have to make declare the div with margin:0;padding:0;


Crud.
Code:
         /* Horizontal Rule <hr> */
            .LeftArticalCell-Inner hr {
               padding:0;
               margin:0;
            }


That's how I'm trying to style it, and it ain't working.

I'm using tables for this design, and I'm using CSS classes to format it and all....

Help!
mariohs
I guess it's not a <br> tag problem, but an <hr> tag problem, right?

Take a look at this article, that explains how to style the <hr> tag. It helped some of my friends a lot.

http://www.sovavsiti.cz/css/hr.html
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.