0

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.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Hangfire
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.