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="Magic" data-source="post: 250047" data-attributes="member: 23359"><p>So I added borders and box shadows to my divs and than it all turned to shit by going out of center. I would like all boxes to be centered nicely, I've tried a lot of things by adding margins, increasing the page wrapper width, making the divs smaller etc.</p><p></p><p>This is like the second website i have ever worked on so excuse me for any sloppy code. </p><p></p><p>[ATTACH=full]2521[/ATTACH] </p><p></p><p>[CODE]#header {</p><p> float: left;</p><p> height: 95px;</p><p> width: 1000px;</p><p> background: #FF6633;</p><p> float: right;</p><p> border:2px solid;</p><p> border-radius:25px;</p><p> border-color: #000000;</p><p> box-shadow: 5px 5px 2px #888888;</p><p>}</p><p></p><p>#navigation {</p><p> float: right;</p><p> height: 45px;</p><p> width: 1000px;</p><p> background-image: url(../images/everything.png);</p><p> border:2px solid;</p><p> border-radius:25px;</p><p> border-color: #000000;</p><p> box-shadow: 5px 5px 2px #888888;</p><p> margin: 12px;</p><p>}</p><p></p><p>#content {</p><p> float: left;</p><p> background-image: url(../images/everything.png);</p><p> width: 850px;</p><p> box-shadow: 5px 5px 2px #888888;</p><p> margin: 12px;</p><p> border:2px solid;</p><p> border-radius:25px;</p><p> border-color: #000000;</p><p>}</p><p></p><p>#leftcolumn {</p><p> background-image: url(../images/everything.png);</p><p> width: 150px;</p><p> float: left;</p><p> box-shadow: 5px 5px 2px #888888;</p><p> margin: 12px;</p><p> border:2px solid;</p><p> border-radius:25px;</p><p> border-color: #000000;</p><p>}</p><p></p><p>#footer {</p><p> float: right;</p><p> height: 35px;</p><p> width: 1000px;</p><p> background-image: url(../images/everything.png);</p><p> clear: both;</p><p> box-shadow: 5px 5px 2px #888888;</p><p> margin: 10px;</p><p> border:2px solid;</p><p> border-radius:25px;</p><p> border-color: #000000;</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="Magic, post: 250047, member: 23359"] So I added borders and box shadows to my divs and than it all turned to shit by going out of center. I would like all boxes to be centered nicely, I've tried a lot of things by adding margins, increasing the page wrapper width, making the divs smaller etc. This is like the second website i have ever worked on so excuse me for any sloppy code. [ATTACH=full]2521[/ATTACH] [CODE]#header { float: left; height: 95px; width: 1000px; background: #FF6633; float: right; border:2px solid; border-radius:25px; border-color: #000000; box-shadow: 5px 5px 2px #888888; } #navigation { float: right; height: 45px; width: 1000px; background-image: url(../images/everything.png); border:2px solid; border-radius:25px; border-color: #000000; box-shadow: 5px 5px 2px #888888; margin: 12px; } #content { float: left; background-image: url(../images/everything.png); width: 850px; box-shadow: 5px 5px 2px #888888; margin: 12px; border:2px solid; border-radius:25px; border-color: #000000; } #leftcolumn { background-image: url(../images/everything.png); width: 150px; float: left; box-shadow: 5px 5px 2px #888888; margin: 12px; border:2px solid; border-radius:25px; border-color: #000000; } #footer { float: right; height: 35px; width: 1000px; background-image: url(../images/everything.png); clear: both; box-shadow: 5px 5px 2px #888888; margin: 10px; border:2px solid; border-radius:25px; border-color: #000000; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Aligning all divs [HELP]
Top