Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird indent on <p> tag in Netscape 7.0 and IE 6

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
0
0
CA
Hi Folks

I've done a CSS/XHTML site and got it looking pretty much the same in any browser, but I can't figure out why Netscape 7 and IE6 (I think) is indenting my <p> tags at the beginning of each line...How do I stop this?

Ben

My Style def for <p> is:
Code:
p {
	font:11px/20px verdana, arial, helvetica, sans-serif;
	margin:0px 0px 16px 0px;
	padding:0px;
	}
 
Can you further define as follows? Not sure if this would work or not for you but this is what I use for BODY {.....
margin-bottom : 0px;
margin-left : 0px;
margin-right : 0px;
margin-top : 0px;
 
Try using percentages or em instead of pixels. Pixels are open to interpretation by different browsers, whereas using em or percentage will keep everything relative.

Advice courtesy of which has taught me everything I know!
 
Read my post in thread215-296019

maybe it will help you,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top