Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and eliminating Tables

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Im wanting to add a book review section to my website, that i can update with ease.

now, a while back i did this page here


and was thinking about doing something similiar for my book reviews, ie a table and just adding in a cell for each new book review,

but alas, in the world of css i see this is not the done thing to do.

I;ve been scouring through dynamic drive and other css libraries but cant see anything that matches the layout above. Is it ok to use tables and CSS in the above , or is there a far superior way of doing it /. ?

Chance,

Filmmaker, gentleman and polla stilo eleous
 
That's certainly one way to do it. I wouldn't use tables.

One alternative:
Look at the definition list <dl> tag instead. You could just drop one in for each new review. Style it just once.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
One possible CSS way would be to code each review like this:
Code:
<div class="book">
<img class="cover" src="somepic.gif">
<div class="text">
<h2>Blah blah blah</h2>
<p>Yadda yadda yadda</p>
... etc ...
</div></div>
Then you put the following CSS in your stylesheet:
Code:
.book {
   clear: left;
   overflow:auto;
}

.book .cover {
   float: left;
}

.book .text {
   margin-left: 300px;
}
Frankly, though, if you're happy with the table method, stick with it.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
After a closer look at the content on your current page, I like Chris' answer better than mine.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
thanks will certantly give the div thing a try

Chance,

Filmmaker, gentleman and polla stilo eleous
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top