I need some help with coding, Coding website templates |
I need some help with coding, Coding website templates |
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? |
|
|
|
![]() |
Jan 10 2010, 02:40 PM
Post
#2
|
|
![]() Mel Blanc was allergic to carrots. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 6,371 Joined: Aug 2008 Member No: 676,291 |
There's always that little absolute positioning hack.
CODE div#id { width:###px; position:absolute; top:###px; left:50%; margin-left:-###px; /* This is half the amount of pixels that you input into the width property */ } It's kind of pointless though, using the margin:auto; method that FACreate mentioned is a bunch better and it saves time and server space. |
|
|
|
Jan 24 2010, 09:57 PM
Post
#3
|
|
|
~* Traditional Witch ![]() ![]() ![]() Group: Member Posts: 73 Joined: Jul 2007 Member No: 553,061 |
There's always that little absolute positioning hack. CODE div#id { width:###px; position:absolute; top:###px; left:50%; margin-left:-###px; /* This is half the amount of pixels that you input into the width property */ } It's kind of pointless though, using the margin:auto; method that FACreate mentioned is a bunch better and it saves time and server space. Yeah, using left:50% is your best bet. |
|
|
|
CandyPop I need some help with coding Jan 5 2010, 07:32 PM
tcunningham Use semantic xhtml.
w3schools.com Jan 5 2010, 07:38 PM
mipadi QUOTE(tcunningham @ Jan 5 2010, 07:38 PM)... Jan 5 2010, 08:21 PM
FACreate position your DIV's using
CODEmargin: auto... Jan 6 2010, 07:55 PM
999Murderdoll666 Im having the same issue.Im pretty new to making m... Feb 15 2010, 11:34 PM
FACreate QUOTE(999Murderdoll666 @ Feb 15 2010, 11... Feb 17 2010, 04:34 PM
Mikeplyts Sorry to inform you, but I don't think there... Feb 15 2010, 11:38 PM
999Murderdoll666 I dont know what im doing wrong but margin:0px isn... Feb 21 2010, 09:35 AM
ahmad Could you post you code? Feb 21 2010, 10:16 AM
manny-the-dino Topic Closed, and Moved to Resolved Topics. Please... Apr 2 2010, 01:00 PM![]() ![]() |