Making columns

This is a discussion on "Making columns" within the Web Page Design section. This forum, and the thread "Making columns are both part of the Design Your Website category.



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

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 18th, 2004, 18:47
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Making columns

I know *nothing* about CSS.
I've tried to make it work before and failed.

What I really want to be able to do, is make columns in my document. I have a navigation menu that's currently at the top of the page that I would like to move to the side.

I'd rather not use tables.

I'd like it to make itself as narrow as possible.

How do I even start?

thanks
jakyra

  #2 (permalink)  
Old Feb 18th, 2004, 22:17
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Hi...

Can you use columns without a table... I too am very new to CSS and I've just looked in my book and it only refers to columns that are within tables...

I would be interested to know...

Why are you against tables?

Sarah
  #3 (permalink)  
Old Feb 18th, 2004, 22:29
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Tables are the old Way Galaxy... CSS is the new way and in the future will be the only way.
  #4 (permalink)  
Old Feb 18th, 2004, 22:31
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Yes honey, I know, but, you can still use tables in CSS.
  #5 (permalink)  
Old Feb 18th, 2004, 22:38
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
This is what my book says - and I welcome any corrections as this is a good learning curve for me too..

An Example:

<table>
<tr class=r1><td> 1 <td> 2 <td rowspan=2> 3
<tr class=r2><td colspan=2> 4
<tr class=r3><td> 5 <td> 6 <td> 7
</table>

and the style:

td {border: solid}
tr.r1 {background: #F99}
tr.r2 {background: #9F9}
tr.r3 {background: #99F}

So... once you get the table / column how you want it, can you not just apply the style and link it via . or #??

I'm sorry if I am confusing things anymore
  #6 (permalink)  
Old Feb 19th, 2004, 00:09
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I think Jakyra also wants to use CSS to position the content. I don't know enough about CSS to do what you're describing if that's the case...
  #7 (permalink)  
Old Feb 19th, 2004, 06:25
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jamslam
*digs through files.. I know I have it some where*

Ah I found it
Something I wrote, just a basic header with a two column layout. No tables, no positioning. Very stable too..



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> something </title>

<style type="text/css">

body {
margin: 0px;
color: #ffffff;
}

p {
font-family: verdana, arial, serif; /* you should always specify a generic font as a last resort */
color: #ffffff;
}

/* try not to give the browser
too much information, such as
pixel perfect widths and height
let the browser pick the widths
and heights, according to the content
inside the block... it will come out much better */
#header {
background: #c0c0c0;
padding: 4px;
}

/* this will help even out the columns...
this background color should match that of your
left column */
#container {
background: #202020;
}

/* in order to make a two column layout
like you want, you do however need to specify a width
for at least one of the columns...The float property also
comes in handy here */
#left {
background: #202020;
width: 200px;
padding: 4px;
float: left;
}

/* no width is needed here, as it will just take
up the rest of the space... but note the margin-left
property... it's the width of the left column, and the
padding*/
#right {
background: #404040;
padding: 4px;
margin-left: 208px;
}

/* this is very important.. as it makes it mozilla and
many other browsers show this correctly */
div.spacer {
clear: both;
}

</style>

</head>
<body>

<div id="header">



Text in the header</p>
</div>

<div id="container">
<div id="left">



Text in the left column</p>
</div>

<div id="right">



Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column Text in the right column </p>
</div>


<div class="spacer"></div>
</div>

</body>
</html>
  #8 (permalink)  
Old Feb 19th, 2004, 06:50
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Wow! Jamslam, you are a neverending source of walking information

I'm gonna give that a go to later
  #9 (permalink)  
Old Feb 19th, 2004, 15:26
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
YAY! It worked perfect!

Now I have a template for adding the rest of the CSS that I always new I should.

Thanks so much, jamslam!

jakyra
  #10 (permalink)  
Old Feb 19th, 2004, 17:42
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Well done Jakyra!!
  #11 (permalink)  
Old Feb 19th, 2004, 18:01
Up'n'Coming Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jamslam
No problem, always glad to help
Closed Thread

Tags
making, columns

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] 3 columns? PicoDeath Web Page Design 31 Dec 8th, 2007 20:33
2 columns alexgeek Web Page Design 2 Aug 14th, 2007 23:57
3 Columns with CSS Pádraig Starting Out 8 May 31st, 2007 09:32
Three columns R8515198 Web Page Design 5 May 24th, 2007 19:16
I still don't get faux columns. pdk Web Page Design 8 May 21st, 2007 10:52


All times are GMT. The time now is 22:34.


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