Wow, thanks for them Sajuks..
I shall look through them, and get back to you soon -- if you find any other links that you recommend, please post ^_^
thanks,
[r.D]
Main Topics
Browse All TopicsHey all,
That's right, I'm one of those loosers that use tables for layout. :'( lol
I've decided that now that I've got some time to improve my HTML skills, I shall tackle div tags.. Can anyone recommend any decent DIV tutorials?
Thanks very much in advance,
[r.D]
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Start off with
http://www.w3schools.com/c
http://www.meyerweb.com/er
http://www.alistapart.com/
http://www.westciv.com/sty
http://www.csszengarden.co
http://dorward.me.uk/www/c
Search in google for "css layout" and you'll find more.
The above links should be more than sufficient to get u started.
Just so you don't start out on the wrong foot. The div is just another tag; and it is overused by those new to CSS. There is a whole range of tags, and each has a set of behaviours that make it ideal for its designed purpose and not to good for the wrong purpose. Tables have a place in CSS layout, and can be styled to turn them into real workhorses for tabular data. So don't get hung up on just the div tag, or think that div relpaces the other containers like p, fieldset, or textarea.
Now the number one thing you need to do to survive the transition. LET GO of the 20th century. Don't try to mimic table based layouts. It is a different universe; one in which content reigns supreme and you are there to serve the needs of the user, even if you don't like giving up a lot of the control. The old way is two dimensional; the new take on a trip through 4 dimensions. Sit back and enjoy the ride. It really works when you don't try to fight it and make the pages look like they used too; and just give the browser a chance to optimize for the needs of the user.
Just to add to the pile of links you already have, here the link to the serious of articles I have started in preparation for the new EE interface that will make it possible for PEs to make articles available on the site:
http://cd-articles.fatebac
Cd&
Thanks alot for that Cd& =)
I'm curious; if you take a look at the superb Macromedia website (www.macromedia.com), and take a snoop at the source, they've used *no* table tags.. AT ALL!!
They've achieved a certain effect, which consists of having a few columns.. How are columns achieved, without the use of tables? I know* that it's not an easily achieved effect using DIV tags.. however, I can't see how they've achieved it.. The source code don't give too much away, as just about everything is declared in external stylesheets. And I really don't want to spend forever searching thorugh them.. and trying to make sense of their code..
Could you please enlighten me to how they've achieved the columns without tables?
Thanks! ^_^
[r.D]
They use a common method for locked format pages. There are wrappers (div) with fixed widths to to hold a static structure and the contents are in block elements that are using floats to position.
It is not my favourite way to layout, because I prefer the fluid approach that avoids horizontal scrollbars.
Here is a link to a list of different approaches to three column layouts using CSS:
http://css-discuss.incutio
The one I really like on that list is:
http://webhost.bridgew.edu
It is a great example of clean maintainable code.
Cd&
Thanks very much both.
I've just figured out that I can achieve the effect I'm after using span tags, like so:
:-- test.html
<html>
<head>
<title>test</title>
<link rel="stylesheet" href="test.css" />
</head>
<body>
<center>
<span class="test2"></span> <span style="width:10;"></span> <span class="test3"></span>
</center>
</body>
</html>
:--test.css
span.test2 {
width:500;
height:200;
margin:0;
border:0;
color:green;
background-color:red;
padding:0;
}
span.test3 {
width:190;
height:200;
margin:0;
border:0;
color:green;
background-color:blue;
padding:0;
}
It works fine, and center aligns with no problems.. is there a reason that I've never seen this method used before? Are there any issues with using the span tag like this?
Thanks :)
[r.D]
Consistent doctypes are important no matter what you are susing. The modern browsers have far fewr differences when they are forced into standards mode with a strict doctype. The doctype is going to become more improtant in the future as the browser continue to shift support to the CSS2/3, DOM and XHTML standards.
seb-gibbs,
>>>TABLEs is more widely accepted format, so thus your pages will work across more browsers.
I would certainly like to see the documentation that supports that. It would definitely make Yahoo's investment of 18 months and a pile of money to convert from table based to CSS based layout questionable.
Basically you are about 100% wrong, unless my calendat is wrong and we are back to 1999 when we had no choice but to hack layout using tables.
The fact is that there are more sites with table based layout than CSS based layout, because CSS is the newer approach and many developers are still lining in the last century. More than half of the HTML support attributes used for table layout have been depreciated and will be dropped. Some have already been removed from the XHTML specifications.
When I see a comment like that it just tells me you have not actually gone inside CSS and learned to use it; that is the only way you can still think tables are useful for anything but their intended purpose of presenting tabular data. Please, I urge you take the time to actually learn CSS, it will greatly improve your future prospects.
Cd&
Cd&
Thanks Cd&,
would you mind quickly writing the equivalent of the following, but so that it's compatible with a Transitional DOCTYPE:
:-- test.html
<html>
<head>
<title>test</title>
<link rel="stylesheet" href="test.css" />
</head>
<body>
<center>
<span class="test2"></span> <span style="width:10;"></span> <span class="test3"></span>
</center>
</body>
</html>
:--test.css
span.test2 {
width:500;
height:200;
margin:0;
border:0;
color:green;
background-color:red;
padding:0;
}
span.test3 {
width:190;
height:200;
margin:0;
border:0;
color:green;
background-color:blue;
padding:0;
}
please? I just can't figure how to get columns using CSS. I understand that CSS/3 will make columns alot easier, however, that won't be finished and widely compatible for many years as you know.. So, how to do that in CSS/2 ? ^_^
Thanks alot,
[r.D]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html
<html>
<head>
<title>test</title>
<style type="text/css">
.test2 {
width:500px;
height:200px;
margin:0;
color:green;
background-color:red;
float:left;
}
.test3 {
width:190px;
height:200px;
margin:0;
color:green;
background-color:blue;
float:right;
}
</style>
</head>
<body>
<div style="width:700px;margin:
<p class="test2"></p> <div style="width:10px;float:le
</div>
</body>
</html>
Here is what I did. I add a strict doctype I got rid of the span off of the class so they can be applied to any type of element. I remove the border:0 and padding:0 because those are defaults and unnecessary. I added a unit of measure (px) where necessary.
Now to the positioning. The centering of element is done with auto margins. So the contenet goe in a wrapper div which has the left and rigt margins set to auto. That centers it. The center tag is obsolete; don't use it. Then I change the spans which are inline elements to thre different block elements so they could be given the form neceassary to make them floatable.
That last bit is the key float is the key to controling the positioning of elements. The changes the behaviour of the block elements so they stay inline, and move as far to the right of left of their parent as they can without overlapping and sibling in the same layer level.
This kind of blocking of the page using div, p, h and fieldset tags sets up the general layout ready for the detail using inline elements that will be the children of these primary block elements.
Cd&
Business Accounts
Answer for Membership
by: sajuksPosted on 2004-12-23 at 03:12:22ID: 12891355
i guess ur talking about css layout ss/
s/position ing/ ndexdot/cs s/topics/s tylefaq.ht m eb/layouts / nt.com/tut orials/box _lesson/ bo xes.html csslayout- howto
http://www.w3schools.com/c
http://www.brainjar.com/cs
http://www.blooberry.com/i
http://www.bluerobot.com/w
http://www.thenoodleincide
http://www.w3.org/2002/03/