//flex table opened by JP

Click to See Complete Forum and Search --> : XHTML = External Padding?


cwin
11-20-2003, 03:59 PM
Well, i try to make a move to XHTML.
A problem hits
:(
I have a div.
Ahh... im not explaining it all, it is obvious.
:rolleyes:

Trans HTML: http://www.cwin.redirectme.net/****/htmldiv.htm
Trans XHTML: http://www.cwin.redirectme.net/****/xhtmldiv.htm

As you can see, the XHTML one has a scrollbar. I assume that what is happening is the padding is making the box bigger. It works without the padding. I need the badding though.

I tried putting in a margin: 0px -5px 0px -5px, although it got rid of the scrollbar, it made it look like there was no padding.

Any ideas this time?

cwin
11-20-2003, 04:09 PM
temporarily fixed it.... using a left:0px; right:0px; thing. But why do i have to do this? It should work the other way, right?

fishybawb
11-20-2003, 04:39 PM
If you use the Strict definition of XHTML instead of the Transitional one it works fine. Why, I haven't figured out yet...

Replace the header with:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">