Results 1 to 3 of 3
Jul 18, 2006, 03:27 #1
Is the <p> tag a block or inline element?
I would like to know if the <p> tag is a block or inline element as I wish to assign CSS values such as floats and margins to it.
Jul 18, 2006, 03:31 #2
- Join Date
- Jan 2005
- 0 Post(s)
- 0 Thread(s)
give it a background color and see what happens
PS you can float almost any Tag, and use padding and margins on it
a float makes inline tags Block Level, in other words you can build pages with span Tags that use valid html code (Symantic's is an other Story)
Jul 18, 2006, 04:25 #3
When in doubt, I force the issue... ANY element can be made block level with display:block; or not with display:inline; floating elements that aren't block by default without display:block can result in wierd layout issues in Netscape 8 and IE.
I just wish display:inline let you set width and height on the element in browsers other than IE - would mean a lot less futzing with floats.