Users Viewing This Thread
 1 Guest(s)
amatorbalikci.net

Post Reply  Post Thread 
DIV Layer alignment problem.
Author Message
colin
Senior Member
****


Posts: 251
Group: Registered
Joined: Aug 2007
Status: Offline
Reputation: 0

Country:
Post: #1
DIV Layer alignment problem.

problem I'm having.

I created the layout in Adobe Photoshop CS, and got the positions (y, x, h, w) in the info and put them into the DIV code, and aligned it, and the image to the right, but it's all screwed up. Does anyone have any solutions to this?

09-15-2007 08:21 AM
Find all posts by this user Quote this message in a reply
smacker
Member
***


Posts: 234
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0

Country:
Post: #2
RE: DIV Layer alignment problem.

I don't quite know what exactly is your problem but I'll try to help:

Things are screwed up just in IE. That's because of the common issue that margin and padding are not the same in IE and Fx.

You can fix that by adding this to the first line of your HTML document:
Code:



You can also choose another Doctype, but this one is most strict so you get less issues.

If you've added the Doctype, you must assure yourself that you follow the rules of the doctype, you can check that here: http://validator.w3.org

You must also add this to your stylesheet (CSS):
Code:

* {

margin: 0;

padding: 0;

}

Good luck!

09-15-2007 11:45 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: