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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layer misalignment possible DOCTYPE statement problem?

Status
Not open for further replies.

Biankita

Technical User
Mar 20, 2007
6
US
When I preview my page in IE some of the layers are misaligned. Is this a possible DOCTYPE problem? I searched it in the FAQ section but I am not sure. I am a newbie so please excuse me if this seems a silly question to you.
I'd appreciate some help.
 
Without seeing your code its hard to tell.

But I'm inclined, however, to say it might be a box model issue. As FF ands IE handle the box models differently. Take a look at this page to see what I mean:

Box Model Issue

Also it would be good to know what Doctype you are using, to see if it is a valid Doctype or not.

You might also want to go into w3.org and validate your html, as well as your CSS.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi, first of all thanks for the response. I actually created this site mostly in layers. I don't know if this is good or bad, but as a newbie it was the only way I could swing it. So, I would create a layer and then type in it using a CSS style. It sounds like the box model problem might be what I am experiencing.
Here's an example of what code dreamweaver created for it:

<div id="Layer9" style="position:absolute; width:159px; height:85px; z-index:68; left: 125px; top: 596px;">
<ul>
<li class="style6">eurospec</li>
<li class="style6">brand new, sim free </li>
<li class="style6">european warranty </li>
<li class="style6">200 pcs available</li>
<li class="style6">physical in Miami</li>
<li class="style6">ready to ship </li>
</ul>
</div>

I am also getting lots of error codes regarding the height.
Here is my DOCTYPE, which I got from a link on this site.
It's supposed to work for most browsers:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"<html xmlns=" xml:lang="en" lang="en"></html>

Thanks again for the help.
 
To avoid confusion, i'm gonna continue in the new thread, and set a link to it here. for further followups. In the future keep all posts regarding the same issue in the same thread.

This thread continues here:
thread770-1347882

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top