Reply
Tableless CSS web design?
Old 05-11-2008, 01:16 PM Re: Tableless CSS web design?
scutari's Avatar
Skilled Talker

Posts: 76
Name: Indrit
I think that css table less design are the best way to design website nowadays.I get help from Dreamweaver in this cases cause it shows the margin and padding of tables in the design mode(this is not seen in Homesite for example)
scutari is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 02:44 AM Re: Tableless CSS web design?
alfren's Avatar
Novice Talker

Posts: 8
Name: Alfren Enriquez
Location: Davao City, Philippines
Tableless CSS designs are the best way to code a website nowadays, But your only problem is the browser compatibility like IE6 but its not a problem if you know how to use the IE css hacks.

I've made this page: http://new.davaobusiness.com/hosting.htm and i used the div tag and code with css. i have a problem with it in IE6.
__________________
yo!
alfren is offline
Reply With Quote
View Public Profile Visit alfren's homepage!
 
Old 05-12-2008, 02:56 PM Re: Tableless CSS web design?
LadynRed's Avatar
Super Moderator

Posts: 5,950
Location: Tennessee
Alfren - you are triggering IE6's doubled-float margin bug with this kind of code:

#content-right {
float:left;
margin-left:4px;
width:675px;
}
When you apply a margin going in the same direction as your float, then IE will DOUBLE that margin. You need to use conditional comments to call a separate CSS file that contains ONLY the code needed to make IE behave. In this case you need to add display:inline; to the div's where you have float:left and a left margin and float:right and a right margin.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-13-2008, 01:00 AM Re: Tableless CSS web design?
alfren's Avatar
Novice Talker

Posts: 8
Name: Alfren Enriquez
Location: Davao City, Philippines
I see... thnx for your help! I don't really know how to use this code: display:inline; in css.

When i'm fixing in IE6, i use the css hack: * html .element i almost got it only a few errors left.
__________________
yo!
alfren is offline
Reply With Quote
View Public Profile Visit alfren's homepage!
 
Old 05-13-2008, 05:51 AM Re: Tableless CSS web design?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 523
Name: Darren
Location: England
I completely agree with LadynRed and that CSS is the way to go - WHEN I can get it to work.

It just seems an uphill struggle trying to change years of (now classed as) bad habits.

At the moment I'll admit that it is taking me longer to do layouts with out using tables but occasionally, something works first time and I'm surprised at how fast it can actually be.
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 05-13-2008, 07:43 AM Re: Tableless CSS web design?
Webmaster Talker

Posts: 623
Location: Kokkola, Finland
well it is 10 years since the introduction of css.

maybe soon as well ie will support some more of it
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 05-13-2008, 12:01 PM Re: Tableless CSS web design?
LadynRed's Avatar
Super Moderator

Posts: 5,950
Location: Tennessee
Quote:
I don't really know how to use this code: display:inline; in css.
I TOLD you how - you create a separate CSS file, I call mine 'iefixes.css'. In that new file your css will have JUST the code to fix IE6. In this case it would be:

#content-right, #content-left{display: inline;}

Add any other ID's or classes that also have float:right with a right margin, or float:left with a left margin.

In your html, you use a CONDITIONAL COMMENT to call that 'iefixes.css' file. Google is your friend.. look it up!
Quote:
When i'm fixing in IE6, i use the css hack: * html .element i almost got it only a few errors left.
And that is a bad habit to get into, particularly since IE7 will choke on that *html hack.

Quote:
It just seems an uphill struggle trying to change years of (now classed as) bad habits.
There is no question that moving to table-less layouts and really mastering CSS is a steeper learning curve, but it's well worth the effort in the end .
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-13-2008, 12:12 PM Re: Tableless CSS web design?
bakerc's Avatar
Penguins on toast

Posts: 1,425
Name: carl
Location: UK
You shouldn't be designing a page to look exactly the same in every browser as from what I understand its a practical impossability.
If you dont want to use conditional statements for the float margin bug then set your page layout so it will support the double margin in IE6 - that wll fix the IE double float margin (i.e. if your left float has a left margin of 2px, set your layout so it has space for a 4px float) then in IE 6 the float will be bigger but it wont fall over. It may look slightly different in IE6 but nothing is ever going to be perfect.

@ Darren
I only learnt CSS a couple of months ago (I had never even heard of it before and always used to use tales - my current site has tons of them, until I upload the new site I am working on) and whilst I am still learning and have not yet 'mastered' CSS I have found it easier to use in the main and much more versatile than tables and well worth the effort.
__________________
Lifes as good as you make it...

Last edited by bakerc : 05-14-2008 at 03:32 AM.
bakerc is offline
Reply With Quote
View Public Profile
 
Old 05-13-2008, 10:14 PM Re: Tableless CSS web design?
alfren's Avatar
Novice Talker

Posts: 8
Name: Alfren Enriquez
Location: Davao City, Philippines
well i don't really have a problem with IE7 because i use a conditional comment for a separate css file for IE7.

I only learned css in one day and i really think tableless CSS webdesign is the best!
__________________
yo!
alfren is offline
Reply With Quote
View Public Profile Visit alfren's homepage!
 
Old 05-14-2008, 04:46 AM Re: Tableless CSS web design?
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 523
Name: Darren
Location: England
Quote:
I only learned css in one day
Along way to go then?!
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..."
QuizBay Help with the testing of this Beta site!
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Tableless CSS web design?

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14429 seconds with 12 queries