Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

table-like structure

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 27th, 2006, 13:40
New Member
Join Date: Jun 2006
Location: ireland
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
table-like structure

hi all

i'm using css and divs to create a table-like effect, as such:

<div style="float: left; width: 50%; clear: both">Company Name</div>
<div style="float: right; width: 50%; clear: both">Acme</div>
<div style="float: left; width: 50%; clear: both">Email</div>
<div style="float: right; width: 50%; clear: both">info@acme.com</div>

all well and good, until i get an over-long company name, which wraps the text onto the next line, so that the wrapped text lines up with the "Email" header. i don't mind that the text wraps, but i'd like the next "row" to be pushed down by the wrapped text, if possible

any suggestions?

TIA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jun 27th, 2006, 15:26
New Member
Join Date: Jun 2006
Location: Norfolk, UK
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: table-like structure

I'm not being funny here, but the content/structure suggests to me that you should actually use an HTML table. (And I'm a CSS bloke!).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 27th, 2006, 15:30
New Member
Join Date: Jun 2006
Location: ireland
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: table-like structure

thanks prototypecoding, i'm aware that this is tabular data, and i'd be forgiven for using a table just an academic exercise really, i'm just interested in whats causing the behaviour, and possible solutions! thanks for your response

dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 27th, 2006, 15:53
New Member
Join Date: Jun 2006
Location: Norfolk, UK
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: table-like structure

Hmmm, this seems to work pretty well in IE and FF:

<div style="float: left; width: 49%;">Company Name</div>
<div style="float: right; width: 49%;">Acme Acme Acme Acme Acme Acme</div>
<div style="width:100%; clear: both"></div>
<div style="float: left; width: 49%;">Email</div>
<div style="float: right; width: 49%;">EMAIL REMOVED - Send PM to This User Instead</div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jun 27th, 2006, 16:10
minute44's Avatar
Most Reputable Member

SuperMember
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,361
Blog Entries: 3
Thanks: 0
Thanked 1 Time in 1 Post
Re: table-like structure

Quote:
Originally Posted by dscanlon
thanks prototypecoding, i'm aware that this is tabular data, and i'd be forgiven for using a table just an academic exercise really, i'm just interested in whats causing the behaviour, and possible solutions! thanks for your response

dave
Yeah... but you're missing the point.

If you did it this way, sure it would be an acheivement but it would be wrong. It would be just as wrong as using tables for layout. The problem arrises when tags are used to do jobs they were never meant to do. Tables for lauout is wrong and CSS controlled div tags for displaying tabular data is wrong.

Hope this clears things up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
tablelike, structure

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
Website Structure marSoul Website Planning 4 Oct 11th, 2007 20:31
Frame structure WLQ JavaScript Forum 1 Oct 8th, 2007 10:56
blog structure alexgeek PHP Forum 25 Aug 26th, 2007 02:23
Request opinion on a database table structure doowop Databases 0 Sep 23rd, 2005 14:22


All times are GMT. The time now is 19:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8