alignment problems

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Aug 14th, 2006, 10:00
New Member
Join Date: Aug 2006
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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>&nbsp;&nbsp;&nbsp;
<a href="about.html" class="nav">About</a>&nbsp;&nbsp;&nbsp;
<a href="products.html" class="nav">Products</a>&nbsp;&nbsp;&nbsp;
<a href="solutions.html" class="nav">Solutions</a>&nbsp;&nbsp;&nbsp;
<a href="services.html" class="nav">Services</a>&nbsp;&nbsp;&nbsp;
<a href="support/index.php" class="nav">Support</a>&nbsp;&nbsp;&nbsp;
<a href="store.html" class="nav">Store</a>&nbsp;&nbsp;&nbsp;
<a href="blog.html" class="nav">Blog</a>&nbsp;&nbsp;&nbsp;
<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;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Aug 14th, 2006, 10:31
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: alignment problems

HTML: Select all
<style type="text/css">
    #header {
        width: 100%;
        height: 43px;
    }
    #header h1 {
        width: 150px;
        height: 43px;
        margin: 0;
        text-indent: -5000px;
        display: block;
        float: right;
    }
    #header h1 a {
        width: 150px;
        height: 43px;
        background: url("images/wlogo.png") no-repeat 0 0;
        display: block;
    }
    #header ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    #header li {
        padding: 0 10px 0 0;
        font: 14px/43px arial,sans-serif;
        display: inline;
    }
</style>
<html>
    <div id="header">
        <h1><a href="http://www.toves.tv">Toves</a></h1>
        <ul>
            <li><a href="home.html">Home</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="products.html">Products</a></li>
            <li><a href="solutions.html">Solutions</a></li>
            <li><a href="services.html">Services</a></li>
            <li><a href="support/index.php">Support</a></li>
            <li><a href="store.html">Store</a></li>
            <li><a href="blog.html">Blog</a></li>
            <li><a href="contact.html">Contact</a></li>
        </ul>
    </div>
</html>
This is proper HTML and CSS.

Last edited by Ryan Fait; Aug 14th, 2006 at 10:37.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 14th, 2006, 11:03
New Member
Join Date: Aug 2006
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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?)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 14th, 2006, 20:47
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Aug 14th, 2006, 21:53
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: alignment problems

Which links do you want to align to the bottom of which area?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Aug 15th, 2006, 07:41
New Member
Join Date: Aug 2006
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Aug 15th, 2006, 08:40
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: alignment problems

I know what you mean. Something like this should do the trick I think:

Code: Select all
    #header ul {
        margin: 28px 0 0 0;
        padding: 0;
        list-style-type: none;
    }
    #header li {
        padding: 0 10px 0 0;
        font: 14px arial,sans-serif;
        display: inline;
    }
What I changed is beginner's CSS, you should be able to do that!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Aug 15th, 2006, 08:55
New Member
Join Date: Aug 2006
Location: London
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
alignment, problems

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 02:11.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42