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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.