PDA

View Full Version : <div> and Positioning




dingdongbubble
Jul 27, 2007, 05:35 AM
I it possible for me to select some elements in my HTML usng the div tag and then using CSS or HTML itself, position the div selector and the elements in it, across the page for example on the riht side.

I got this idea from:
http://www.apple.com/search/store/?q=appleworks

If you look on the right side, I want to make a box like the one around "All Categories"

Here is a screenshot:



werther
Jul 27, 2007, 06:51 AM
yes, but I wouldn't use padding, I would use floats. float:right;

dingdongbubble
Jul 27, 2007, 06:57 AM
So in CSS I select div id whatever and put float right?

dingdongbubble
Jul 27, 2007, 07:14 AM
Great

That did the trick Thanks.

How can I ine tune the thing to be exactly where I want it?

dingdongbubble
Jul 27, 2007, 07:47 AM
Uhh well that did help but how do I organise it?

These are two screenshots. One is hat I have made in practice. And the other is of Apple's website. Its organized and thats is what I want.

Matteh117
Jul 27, 2007, 08:43 AM
Don't float it, position it! XD

.class {
position: absolute;
right: 5px;
top: 5px;
}

^ self explanatory. :)

dingdongbubble
Jul 27, 2007, 08:52 AM
MUHUHUHUAHAHAHHA

I love this. Thanks man.

I am learning more and more. HAHAHAH

So thats what they mean by absolute and relative position.

Thanks again.