xhtml border problem

Associate
Joined
11 Mar 2007
Posts
1,741
ok, basicly I want to get rid of the natural border round a web page. Now if its with html 4 its easy, you just add:

<body style="border-style: solid; border-width: 0px">

inside the body tag. However as soon as you change the document type to xhtml strict it ceases to work.

Have I just buggered up the code or is it just not possible in xhtml?
 
What browser are you using? I don't see anything in IE6 or FF.

I've never seen a border appear on a page that wasn't put in intentionally. Maybe you could post a screenshot?
 
Both pages appear the same to me.

Have you tried margin: 0px; and padding: 0px; ?

(you don't need px when using zero but I hate not having units of measure ;))
 

no border


border

you see there is a slight shadow round the side of the border one.
a subtile difference i grant you but i prefer it

at moment am using IE7, will try in opera tho

edit, just been experamenting and there is definatly a difference in IE6 but I didn't see one in Opera
 
Last edited:
Back
Top Bottom