HTML and CSS question

DonIsHere

Senior member
Aug 3, 2000
592
0
0
I am trying to use style sheets to control where stuff goes on my site. However, I am having one particular problem.

I have a table to display, but I don't want to use the table tag. Instead, I've been using the float property in CSS to control what's on the left side and right side. The problem is that when I want to start a new row, the browser is showing the new row underneath the shortest cell (height-wise) in the previous row instead of showing the new row underneath the tallest cell (height-wise) in the previous row.

Here's the page in question

Here's the code for the content part of the site

Here's the style sheet

I thought using the <p> tag would work but it didn't.

thanks for any tips.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
I have a table to display, but I don't want to use the table tag.

Do you understand the purpose of the creation of a tag called "table"? It was to display things in tables. If you have a table to display, use a table.
 

bunker

Lifer
Apr 23, 2001
10,572
0
71
I was going to try and help you some more but I just noticed where you graduated from and I'm from Michigan.


That and you don't seem to have too much sense if you want to use CSS when it's not the proper tool for the job.
 

DonIsHere

Senior member
Aug 3, 2000
592
0
0
Originally posted by: bunker
I was going to try and help you some more but I just noticed where you graduated from and I'm from Michigan.

O = Oregon, NOT Ohio. Read my profile, see where I'm from. Oregon and Michigan have no beef with each other (and does that really matter?).

Originally posted by: bunker
That and you don't seem to have too much sense if you want to use CSS when it's not the proper tool for the job.

My HTML instructor in school said only use tables for actual tabular data, like in a science lab report.
 

he's right technically
tables are meant for data

but lack of graphical layout options, designers adapted tables to do magnificent things :)
now with so many people following w3c like some cult-like religion, CSS has grown to control much more than text and color

I can't answer your question, because i enjoy extremely intricate and advance table structures (and i also enjoy a website that looks the same to all browsers)

but you can find your answer here
http://www.webmasterworld.com/forum83/
 

bunker

Lifer
Apr 23, 2001
10,572
0
71
Originally posted by: DonIsHere
O = Oregon, NOT Ohio. Read my profile, see where I'm from. Oregon and Michigan have no beef with each other (and does that really matter?).
Okay, my bad:eek:

And yes it matters. You have no idea the hatred between O(hio)SU and UofM ;) :D

My HTML instructor in school said only use tables for actual tabular data, like in a science lab report.
That's because it's your instructors job to tell you the "proper" (w3c) way to use html. In practice, if a simple table structure is all you need, use a table regardless of the content.
 

MScrip

Member
Dec 30, 2003
132
0
0
I've been designing websites for about 9 years... but I'm new to the whole CSS vs. Tables argument. I can see the advantage of cross-browser compatability and cool-factor of CSS. But why is everyone saying that tables are suddenly wrong for layout? Since the beginning of the web, tables have been used to align items on a page and create layout for different elements on a page... long before this new love for CSS. For a long time, tables were the only way to do layout. In fact, CSS was recognized first as a way to control colors and fonts, not for layout. Although tables can be tricky to figure out... tables have been the basis of web-design for almost 10 years.

Someone recently said, "Whether we like it or not, CSS layout is the standard for web development." When exactly did this happen? Shouldn't standards have developed in the beginning of the web, and not in 2004?

Only the smallest percentage of tech-savvy websites are switching over to pure CSS for layout. What about the billions of other websites on the web?

Don't get me wrong... I'm all for new trends in web-design. But the overall mood today is, "if you still use tables, you're an asshole!" How can tables be suddenly so BAD, when they are used on a billion websites already? Tables were fine last year, but now they are horrible... It sounds like the diet trend... Suddenly carbs are bad! Don't ever eat carbs!

I've played with CSS layouts, and it's kinda cool making an entire site without using a single <TABLE> tag. But right now it's a hobby. I'm not switching over to pure CSS for layout yet. And I probably don't have to... I'm sure tables will continue to be supported by browsers for many years to come.

I think it's funny that so many people now say "tables should only be used for tabular data." When for the past 8-9 years, every site was built with tables.

CSS for layout is cool... but you can't go back to 1994 and teach CSS instead of tables!