This is a discussion on "alignment problems" within the Web Page Design section. This forum, and the thread "alignment problems are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
alignment problems
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
alignment problems
Hi all,
I've been trying for ages now to do something I thought should be quite simple. I Just want to get my logo aligned to the right and the links to align to the left, however I can only get it to either all align to the right or all align to the left I've tried lists, spans, divs, I just can't do it, can anyone help? Here's the link http://www.toves.tv/website/test.html here's the code as it is at the moment... html: <body> <div id="wrap"> <!-- sof Head --> <div id="top"> <a href="home.html" class="nav">Home</a> <a href="about.html" class="nav">About</a> <a href="products.html" class="nav">Products</a> <a href="solutions.html" class="nav">Solutions</a> <a href="services.html" class="nav">Services</a> <a href="support/index.php" class="nav">Support</a> <a href="store.html" class="nav">Store</a> <a href="blog.html" class="nav">Blog</a> <a href="contact.html" class="nav">Contact</a> <img src="images/spacer.gif" width="41" height="1"> <a href="http://www.toves.tv"><img src="images/wlogo.png" alt="toves" width="150" height="43" border="0"></a></div> <!-- eof Head --> <!-- sof Main **right side** --> <div id="main"> <h1>Welcome</h1> <p>Text</p> </div> <!-- eof Main --> <!-- sof Left Side--> <div id="left"> <p><b>Flash Will Go Here</b></p> </div> <!-- eof Left Side--> <!-- sof Footer --> <div id="bot"> <p>text</p> </div> <!-- eof Footer --> </div> <!-- eof wrap--> </body> css: #wrap { position:relative; margin:0 auto; padding:0; width:850px; border:0; background:#fff; color:#333; } #top { width:100%; height:50px; background:#fff; text-align:right; } #main { margin:0; padding:0 15px; width:600px; float:right; border:1px solid #333; background:#fff; color:#333; height: 500px; overflow: auto; } #left { margin:0; padding:0 15px; width:150px; float:left; background-color:#CCCCCC; color:inherit; height: 500px; border: 1px solid #333; } #bot { margin:0; padding:20px 0 0 0; clear:both; height:50px; font-size: 70%; background:#fff; } .divider { padding:10px; text-align:center; } |
|
|
|
#2
|
||||
|
||||
|
Re: alignment problems
Last edited by Ryan Fait; Aug 14th, 2006 at 10:37. |
|
#3
|
|||
|
|||
|
Re: alignment problems
ah, fantastic - thank you
is there any way i can get those links to align to the bottom? (vertical-align bottom doesn't seem to work?) |
|
#4
|
||||
|
||||
|
Re: alignment problems
There is no standard way to align things to the bottom. Use a top margin or padding to push the text down and take out the line height declaration I added (14px/43px arial, sans-serif to 14px arial,sans-serif).
|
|
#5
|
|||
|
|||
|
Re: alignment problems
Which links do you want to align to the bottom of which area? |
|
#6
|
|||
|
|||
|
Re: alignment problems
I wanted all of those in div id header (the navigation links) to align so that their bottom is the same as the bottom of the logo image. Not sure that makes sense
Basically at the moment height wise they are to the middle of the logo image |
|
#7
|
||||
|
||||
|
Re: alignment problems
I know what you mean. Something like this should do the trick I think:
|
|
#8
|
|||
|
|||
|
Re: alignment problems
Thanks, I had tried that however that just knocks the two boxes below out so that the "flash will go here" box goes beneath the main box.
|
![]() |
| Tags |
| alignment, problems |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drop down menu alignment problems. Div wont vertically align. | Itsumishi | Web Page Design | 7 | Mar 4th, 2008 04:57 |
| tricky floating problems for div alignment | escaflowne11 | Web Page Design | 4 | Dec 10th, 2006 08:03 |
| Alignment in IE | technicolourchameleon | Web Page Design | 4 | Oct 11th, 2006 22:59 |
| CSS Newbie: Firefox alignment problems | SuperGrover1981 | Web Page Design | 1 | Aug 31st, 2006 10:28 |
| Two problems - image alignment and new browser windows. | DrRedSkwirrell | Web Page Design | 9 | Oct 29th, 2005 00:51 |