Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 2nd, 2006, 11:25 AM   #1
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
DIV tables

There's so much talk about making tables with CSS and div tags. Why is it better? Just because of loading times? The internet is already fast enough.
commodore is offline   Reply With Quote
Old Apr 2nd, 2006, 11:56 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Personal opinion: tables are for tabular material. They work fine. Tables are not for layout. I wouldn't make my table (for tabular material) from divs with the attributes, "table", "table-row", and "table-cell" simply because it seems silly to do that when the table is available. Besides that, the attributes do NOT work as advertised, cross-browser. I admit that I do not use the table's attributes for border, background, etc. I still use the table, but I apply a style wherever I need it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 3rd, 2006, 12:43 AM   #3
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
simply put, you have better control over your layout, use less bandwith, and can make all pages instantly printer friendly with a complete CSS layout. it's as simple as that
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Apr 3rd, 2006, 1:50 PM   #4
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
Ok I'm going to try. I did this: http://commodore.gran.ee/test/ . As always I have problems . I hope you understand that I'm trying to make a box that uses some images for it's border and that scales it's height to fit it's content. I have done this before with tables but I want to try div's too.
commodore is offline   Reply With Quote
Old Apr 3rd, 2006, 2:16 PM   #5
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 4 Agent 47 is on a distinguished road
You're making a bit of a meal of it...

Here's a simple, semantically correct demo:

http://www.vertexwerks.com/tests/sidebox/
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"
Agent 47 is offline   Reply With Quote
Old Apr 3rd, 2006, 2:36 PM   #6
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
I tried to look for tutorials but they just did simple boxes without images.

EDIT: The link you gave makes it with 600x600 px images :eek:
commodore is offline   Reply With Quote
Old May 1st, 2006, 2:24 PM   #7
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
Ok, I found some tutorials and I started learning this shizn.

http://commodore.gran.ee/test/

How can I make the left and right border images liquid (they will change their size according to the content)?
commodore is offline   Reply With Quote
Old May 1st, 2006, 3:07 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Your question is entirely unclear, since you only have material in one div. Cottonpicker, I really need to get my crystal ball back from the shop.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 2nd, 2006, 3:24 AM   #9
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Quote:
Originally Posted by commodore
There's so much talk about making tables with CSS and div tags. Why is it better? Just because of loading times? The internet is already fast enough.
I don't really know whether it is better or not. But, working with tables at times is difficult for me especially with nested ones for layout
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old May 5th, 2006, 1:31 PM   #10
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
A guy in another forum helped me. The site looks like this now: http://commodore.gran.ee/test/

How can I fix the repeating of the top and bottom images in IE?

How can I make the menu links change the background only when hovering over? Right now they change the width too! I understand it's the problem of padding, but I don't know how to solve this better.
commodore is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC