in a css file how i can define a link witch is in a div with id="side".

//__________________________________________

what is the diffrence between "class" and "id"?

//__________________________________________

with a css iwanna make the followin plane for a page; for the side bar i tried margin top=30% ,but it
doesn`t work right?!


_____________________________________
| |
| |
| |
|____________________________________| ^
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 70%
| | | |
| | | |
| | | |
| | | |
|______|_____________________________ |
<---20%-><---------------------------80%----------->

thanks a lot.

You use an id in to refer to one element and one element only, to refer to it in CSS you use #

e.g. #leftcol{width:30%;}

Class can refer to a bunch of elements, in CSS you refer to a class with .

e.g. .evenRows{background:#ababab;}

Webpages don't really have a defined height, but a 2 column layout is quite a common approach.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.