Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Aligning all divs [HELP]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sysode" data-source="post: 250175" data-attributes="member: 25453"><p>Do you not have a container? Using of them will help aligning things, I take it you'd want it a fixed design so try this code:</p><p>[CODE].container {</p><p> width:980px; /* change to what you want */</p><p> margin:0 auto; /* Aligns it center */</p><p>[/CODE]</p><p>Apple this before all of your grouped elements and see if that helps you out. Feel free to PM if you require any further help.</p><p></p><p>Also just a heads up, try to use classes (example: .container) in CSS as they're faster selectors and use ID's (#header) for javascript as it's what they're meant for. It doesn't really make a real difference for a small site, just comes in handy to get in the habit of.</p></blockquote><p></p>
[QUOTE="Sysode, post: 250175, member: 25453"] Do you not have a container? Using of them will help aligning things, I take it you'd want it a fixed design so try this code: [CODE].container { width:980px; /* change to what you want */ margin:0 auto; /* Aligns it center */ [/CODE] Apple this before all of your grouped elements and see if that helps you out. Feel free to PM if you require any further help. Also just a heads up, try to use classes (example: .container) in CSS as they're faster selectors and use ID's (#header) for javascript as it's what they're meant for. It doesn't really make a real difference for a small site, just comes in handy to get in the habit of. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Aligning all divs [HELP]
Top