View Single Post
04-11-2007, 12:24 PM
#2
Amross is offline Amross
Status: Member
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 311
iTrader: 4 / 100%
 

Amross is on a distinguished road

  Old

Originally Posted by Gracia View Post
Code:
h1,h2,h3,h4,h5 { 
margin:0; 
padding:0; 
} 
..and then.. 

h1 { 
padding:3px; 
}
and so on. If you do it this way, you don't need the display property and the linebreak.
Except for the fact you're doing something different than the intent and it will have a different effect in browsers. Changing the display type to inline is the technically correct method of doing what the thread starter asked. Should they ALSO want to remove any whitespace that certain browsers will display, only then would your method be applicable and recommended.