[SOLVED] CSS Alignment Issue

This is a discussion on "[SOLVED] CSS Alignment Issue" within the Web Page Design section. This forum, and the thread "[SOLVED] CSS Alignment Issue are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 23rd, 2008, 10:17
New Member
Join Date: Jan 2008
Location: Newport, S.Wales
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] CSS Alignment Issue

Hi Guys,

I've got an issue with some CSS, that I need help with please.

The site in question is online and is viewable at http://www.arsene-all.com. What I'm looking to do is have two columns within the main content area, but aligned with the background. (should be easier to understand what i'm attempting when you see it)

The text i want in the left column is there, but i'm having difficulty aligning it correctly, so that it fits with the background and doesn't stretch to further than two thirds of the main content areas length.

Any help is much appreciated, (its a college project)

Regards,

Aaron
Reply With Quote

  #2 (permalink)  
Old Jan 23rd, 2008, 10:30
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: CSS Alignment Issue

You will need to have two nested divs within the #main in order to do this.
Change #main to the following:
Code: Select all
#main {
font-family:verdana;
font-size:12px;
margin:0px auto;
width:1000px;
}
then add two new div's like so:
Code: Select all
#mainleft{float:left; width:600px;}
#mainright{float:left; width:380px; margin-left:10px;}
you will then need to wrap your content in these new divs
HTML: Select all
<div id="main">
<div id="mainleft">
<h2>Latest News</h2>
<h4>News Article 3.</h4>
...
</div>
<div id="mainright">
<p>content</p>
...
</div>
</div>
something like that. sorry, only had 5 mins so you might need to paly with it to line it up correctly
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #3 (permalink)  
Old Jan 23rd, 2008, 10:53
New Member
Join Date: Jan 2008
Location: Newport, S.Wales
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Alignment Issue

Thanks welshstew! Worked a treat, only problem is that a few errors have come about now.

The background within the wrapper div doesn't show up, and the footer has gone above the main content area... so it isn't really a footer

http://www.arsene-all.com

Any more help to fix this issues, would be greatly appreciated.

Regards,

Aaron
Reply With Quote
  #4 (permalink)  
Old Jan 23rd, 2008, 11:07
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: CSS Alignment Issue

try looking at ryan faits sticky footer

will look at the other errors after lunch

__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #5 (permalink)  
Old Jan 23rd, 2008, 13:34
Junior Member
Join Date: Jan 2006
Location: Newport, UK
Age: 18
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to @lun
Re: CSS Alignment Issue

You just need to add
Code: Select all
clear: both
to your footer's css
Reply With Quote
  #6 (permalink)  
Old Jan 23rd, 2008, 14:21
New Member
Join Date: Jan 2008
Location: Newport, S.Wales
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Alignment Issue

Thanks @lun, and Welshstew.

Problem Solved.

Regards,

Aaron
Reply With Quote
Reply

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
[SOLVED] a span alignment pesho318i Web Page Design 7 Dec 12th, 2007 08:36
Alignment Issue keydin Web Page Design 2 Aug 24th, 2007 01:37
Alignment issue in table with multiple select peacher Web Page Design 2 Aug 23rd, 2007 07:35
CSS alignment issue melon Web Page Design 4 Aug 13th, 2007 01:43
Alignment issue with header WillisTi Web Page Design 1 Jan 31st, 2006 16:20


All times are GMT. The time now is 19:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43