Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 25th June 2012, 1:53 PM   #1
Reanimated35 Thread Starter
Member
 
Reanimated35's Avatar
 
Join Date: Sep 2007
Location: Brisbane
Posts: 3,356
Default css help

Ok, so we're working on a website for a family member. Now please focus mainly on the question at hand instead of making complaints about the site it's still a work in progress. Yes there is better out there etc blah blah blah

The question is,

I need to make the side panel the same length as the main body area but I really don't understand how to do that.

At present there is just a bunch of &nbsp there simply because it was working and we wanted a site up asap. I really don't want to have this stay as the permanent solution.

I did a bit of google-ing and came across something called faux columns but this didnt make too much sense to me. Worst case scenario I can just use the &nbsp but I would love another option too.

Now if you must comment on other sections of the site, please try to at least answer my main question first.

The site in question is http://www.forthebestgrindintown.com.au

Thank you in advance
__________________
Any post made by me is either made up, or based off memory and therefore my not be 100% accurate. It does also not represent the view of my employer or anyone else other than me. If you share the opinion however, go us!
Reanimated35 is offline   Reply With Quote

Join OCAU to remove this ad!
Old 25th June 2012, 5:26 PM   #2
rm -rp ./Matt*
Member
 
rm -rp ./Matt*'s Avatar
 
Join Date: Sep 2008
Location: in the computer
Posts: 621
Default

Use the width attribute in divs. So imagine that a div is like a table cell or a container and everything inside that container will inherit the div's properties. Here's an example with percentage widths that maintains the same width ratio across all screens

Code:
<html>
<head>
</head>
<body>
	<div style="position:fixed;top:0%;left:0%;width:30%;height:100%;background-color:blue;">
		<p>test1</p>
	</div>
	<div style="position:fixed;top:0%;left:30%;width:40%;height:100%;background-color:red;">
		<p>test2</p>
	</div>
	<div style="position:fixed;top:0%;left:70%;width:30%;height:100%;background-color:yellow;">
		<p>test3</p>
	</div>
</body>
</html>
Instead of percentage you might prefer fixed pixel widths, just test you design on widescreens too.
rm -rp ./Matt* is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

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

Forum Jump


All times are GMT +10. The time now is 3:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!