iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2004, 05:54 PM
dugfresh33's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: Albuquerque, New Mexico
Posts: 88
dugfresh33 RepRank 0
Default what does the "#" mean?

I know...if I just did a little reading, I'd probably have the answer. But who has time to read...?

I've seen certain CSS code use the "#" symbol, as in:
#container {
blah
blah
blah
}

what is the difference between using a "." and a "#"?

I guess that's two questions...
__________________
...for all have sinned and fall short of the glory of God...
-- Romans 3:23


doug sanchez, creative director/lead designer
Reply With Quote
  #2 (permalink)  
Old 01-28-2004, 06:18 PM
ranjan's Avatar
WebProWorld Pro
 
Join Date: Sep 2003
Location: CA
Posts: 153
ranjan RepRank 0
Default

# is used as an ID selector

Code:
<div id="container">My Container Content</div>
Your CSS

Code:
#container {
blah
blah
blah
}
will style the above container. IDs are unique, ie. you can have only one container in your html document

On the other hand . is the class selectot
Code:
.container1 {
blah
}
will style 1 or more of
Code:
<div class="container1">This  is Container 1 or many?</div>
<div class="container1">This has the same style as container 1 and this is allowed</div>
As you can see any number of divs can be styled with class in a document
__________________
ranjan | Macromedia Certified Dreamweaver MX Developer
http://www.dreamlettes.net - a dreamweaver resource
http://www.ranjan.ws - got blog?
http://www.total-impact.com - a web design community
Reply With Quote
  #3 (permalink)  
Old 01-28-2004, 06:31 PM
dugfresh33's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: Albuquerque, New Mexico
Posts: 88
dugfresh33 RepRank 0
Default Thanks, ranjan!

I'll get this sooner or later...

This is just requiring an adjustment in my thinking process for how I approach the logistics of site layout now.
__________________
...for all have sinned and fall short of the glory of God...
-- Romans 3:23


doug sanchez, creative director/lead designer
Reply With Quote
  #4 (permalink)  
Old 01-29-2004, 12:35 AM
WebProWorld Pro
 
Join Date: Jul 2003
Location: NSW Australia
Posts: 170
freddieb RepRank 0
Default Adjustment

There is some adjustment to be made going from tables & HTML formatting for site layout to using CSS divs/layers and formatting, but hey, it gives you so much freedom with layout, simpler code and a faster-loading page. Stick with it!
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:35 PM.



Search Engine Optimization by vBSEO 3.3.0