WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-15-2004, 11:17 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Sydney
Posts: 146
ozchris RepRank 0
Default CSS margin question

I'm having trouble with my right margin in CSS.

I'm currently playing with www.best-australian.com/testing/template5.htm

I just want 3 simple columns. As per http://css.maxdesign.com.au/floatuto...torial0916.htm . But without borders, and filling the entire screen.

But in the current template5 code, my centre column is wrapping around the right column. I want the centre column to keep to itself, constantly 180px in from the right side of the page.

In the CSS for margin-right, if I code "180 px" on the centre column, at least the right column is in the correct place, but with the unwanted centre text floating below it.

Amazingly, if I remove the space and use "180px" on the centre column, the right column moves into the centre column and I have a blank space on the right side of the page.

This is in Mozilla and IE.

Any simple suggestions?

Chris.
Reply With Quote
  #2 (permalink)  
Old 09-16-2004, 05:42 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

You need 2 changes:

1) In #centrecolumn you need margin-right: 180px not 180 px

2) Move the entire div for rightcolumn above the div for centrecolumn
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #3 (permalink)  
Old 09-17-2004, 03:27 AM
WebProWorld Pro
 

Join Date: May 2004
Location: Sydney
Posts: 146
ozchris RepRank 0
Default

I love you!
Reply With Quote
  #4 (permalink)  
Old 09-17-2004, 05:50 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default

Steady on there ;)

You might be interested in the site being reviewed here, again it's a 3 column pure CSS layout but it uses a different technique.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: , ,



Thread Tools
Display Modes

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

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


Search Engine Optimization by vBSEO 3.2.0