Forum Moderators: not2easy

Message Too Old, No Replies

browser compatibiltiy of display: inline;

         

chairwars

3:49 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



I want to control my <h1> tag so that there are no spaces above or below. I am using display: inline; which does the trick, but i have heard that some browsers do not work with this. Is it a major problem or is it just the older less used browsers that will not display correctly?

MWpro

4:33 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



Just do

h1 {
margin: 0px;
}

to get rid of the margins above/below the h1 tag.

Display: inline works I guess, but I wouldn't recommend it because then you will need to use a <br /> after the <h1> tags to get the block effect.

chairwars

1:24 pm on Jun 23, 2003 (gmt 0)

10+ Year Member



Thanks, that works perfectly now.