Jump to content

[SOLVED] CSS basic question


simpli

Recommended Posts

Hi,

I started on the wrong foot here what with posting my bad CSS but you guys have been able to help me started so thank you already. The reason my CSS is so bad is have some fragmental and some questions I have about it are so basic, they are not answered on the web. For instance,

if something is declared as

.floatright { float: right; }

 

What does it apply to (what's its scope??) Is it the whole document?

also there are the pounds. I understand it's like declaring a variable right?

like #obj1

 

and then <div id=obj1>?

 

Lastly,

I have been able to use

menu.one

{

position:fixed;

left:1em;

top:1em

}

menu.two

{

position:fixed;

left:1em;

top:3em

}

and then in the html use them as

<menu class="two"> I obviously can't use that for the div. I have to declare the CSS style with # (#div1) and then use <div id=div1). Can anyone tell me why and maybe point to a resource where I can start from the very scratch with CSS. Please don't point to anything in french. I speak french but reading technical stuff in french screws me more than anything else.

 

Thanks,

J-R

Link to comment
https://forums.phpfreaks.com/topic/152585-solved-css-basic-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.