Guide to use what in different situations

Hello! :slight_smile:

So I’m getting confused how to set up the page properly.

If I’m going to use a div tag there or just a table there or something else or whatever.

Is there any guide tutorial that has helped you to show what u should use in each situation? :slight_smile:

I’ll give you a brief rundown. Someone could talk for pages and pages and pages about this subject.

Use <div>'s majority of the time. Divs are for division, aka a division of the page. Header, sidebar, footer, etc.

The only times you should be using tables, is when you have tabular data you need to display. Even then, it’s not for layout. It was only done in the old days because it was easy to do, and CSS was a pain to work with, due to limited browser support.

Basically just have an idea of what you want your final product to look like, content included. Think about logically how to slice it up.

Take my website (link in sig and I don’t want to post it to make it seem like I’m advertising). It has some parts to it. The title at the top, that can be a header. Navigation bar on the left, that’s a sidebar. Contenet area to the right of that. Footer.

You could mark it up something like

<wrapper>
<header>
<sidebar><content>
<footer>
</wrapper>

My website doesn’t do that, but right there is a good example of konwing how to mark it up. I’d float sidebar/content to make it side by side. Clear:both; on the footer, in this example, so it doens’t snag on the floats above it. Are you starting to get the picture? Just logically think about how to mark up a page, and go from there.

Even if you don’t know how you will position it, just assume we will know how to do it, and mark it up :). We will be here to correct anything. But that example I just gave is generically OKAY.

I Love you. Well, since you’re writing such a long text i feel stupid replying back such a small text, since I don’t really have much move to say cause you pretty much explained what I wanted to know. :smiley:

EDIT: I Like your site, clean and simple.

Glad I could be of help :).

Thanks for the compliment on my website.

How long have you been doing webdesign? I’m 17 btw. :stuck_out_tongue:

I’ve been dabbling in web design since I was 13, turning 14.

17? Not bad. Keep at it :slight_smile:

Wow thats long, and you know very much, I hope I can be as good as you someday :D.

Lord, don’t feed his ego. :wink: Ryan, how’s it feel to be morphing into one of the “old hands?” I’ll send you some coupons for Geritol.

I’ve still got a few years on me before I even consider myself Prime Rib ;).

Sometimes I don’t understand what you’re saying but you guys seems to be funny anyway… lol :smiley: I only know all the basic english words. Well, it’s actually my teachers fault everything.

EDIT: I didnt understand "morphing into one of the “old hands?” I’ll send you some coupons for Geritol. " and the thing with prime rib. :stuck_out_tongue:

[ot]I think by old hand, he meant “experienced”, or maybe just getting flat out older :P.

By Prime Rib, I was just basically saying I think I still have a few years left (I’m 20) before I consider myself old (or at the peak of my knowledge level).[/ot]

Gotcha! :smiley:

Im gonna b 26, started at 13-14…lost pretty much all the knowledge i had and am back at square one. It really sucks starting from the bottom again. Id probably have my degree and a bad a$$ job but not the case.

Sent from my DROID BIONIC

That sucks.

Am 18 here, will be turning 19 by July. Started learning seriously late last year, its not been that hard cos i kinda gat the basic earlier on.