|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Absolute Positioning with DIV in XHTML Transitional doc
Hello,
I am trying to place a layer on an XHTML transitional page that is 40 pixels from the top and 264 pixels from the left. When I have the DTD tag in place the browser ignores the top and left attributes of my style, but comment it out and it works. Here is the code snippet. Any tips? Quote:
|
|
#2
|
||||
|
||||
|
XHTML is case sensitive. Layer1 ≠ layer1
cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#3
|
|||
|
|||
|
Quote:
made no difference in the outcome. Still not positioning the layer where I want it. Thanks. |
|
#4
|
|||
|
|||
|
I just figured it out myself. I noticed that I didn't specify the top and left properties to be in pixels (px), without the DTD the browsers must have assumed pixels allowing for sloppy coding, with the DTD they did not. I changed this to px and it worked. Thanks.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Absolute Positioning with DIV in XHTML Transitional doc |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|