Log In · Register

 
I need some help with coding, Coding website templates
CandyPop
post Jan 5 2010, 07:32 PM
Post #1


"One hell of a butler"
***

Group: Member
Posts: 95
Joined: Nov 2008
Member No: 696,422



I'm having a hard time coding my layouts so that it can be aligned correctly with all computer screen widths.

For example, I code/design my layouts on a laptop and the screen is really wide. Then I go view the layout on another computer with a thinner screen width and everything is misaligned and just horrible. What can I do to fix that?
 
 
Start new topic
Replies
louiohjkjhlhklkh...
post Jan 6 2010, 07:55 PM
Post #2


Member
**

Group: Member
Posts: 22
Joined: Dec 2008
Member No: 702,109



position your DIV's using
CODE
margin: auto;


Example:
CODE
div#ID
{
    width: 960px;
    margin: 0px auto; /* top and bottom = 0px, left and right = auto */
}
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: