CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 27th, 2004, 08:01 AM
Admin Admin is offline
Developer Shed
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2004
Posts: 906 Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level)Admin User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Article Discussion: The Power of CSS

CSS or cascading style sheets are used to create a set of styles that can be applied to your fonts, tables and most other attributes of your web page. These styles allow you to create a much cleaner, faster web page that search engines love and also makes life much easier on the designer when global changes to these styles need to be applied. It is also always critical to always keep in mind your target audience and the average Internet connection speed these users have. By using styles sheets to their full advantage, you can help keep your web page size down to a minimum.


Read the full article here: [http://www.devarticles.com/c/a/Styl...wer-of-CSS/]The Power of CSS[/URL]

Reply With Quote
  #2  
Old April 28th, 2004, 08:24 AM
agustafson agustafson is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 agustafson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to agustafson
<a> buttons revised

For cross-browser buttons, you need to make the buttons display as block-level element (or it won't take the height value). Also, if you want to vertically center the text in all browsers, you should really use line-height. Line height can be its own parameter or combined with font family, style, weight, size etc. in a parameter called "font" preceeded by a "/" and following the font-size (in this case 1em). Finally, background properties can be combined in "background".

For ease of maintenance, repeating values can be grouped in a catch-all css rule as well.

Here's what I would write:

Code:
a
{
  display: block;
  font: bold 1em/100px Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  width: 175px;
} 
a:link, a:visited
{
  color: #000000;
  background: url(images/home-button.gif) no-repeat;
} 
a:focus, a:hover
{
  color: #006699;
  background: url(images/home-button-over.gif) no-repeat;
}


Of course, using Pixy's Fast Rollovers (URL), you could make you code even more compact. For good tabbed links as well, check out The Sliding Doors of CSS (Part 1: URL; Part 2: URL).

One final note: the only way to ensure all of this works nicely is to make sure you define the DOCTYPE for your HTML or XHTML page.

Reply With Quote
  #3  
Old April 28th, 2004, 07:26 PM
halfacat halfacat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Arizona
Posts: 17 halfacat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Nice Intro


Reply With Quote
  #4  
Old May 2nd, 2004, 06:34 PM
dejaone dejaone is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 300 dejaone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 7 m 22 sec
Reputation Power: 5
It would be nice to have a little discussion about the impact of using CSS on search engine friendly web pages

Reply With Quote
  #5  
Old May 3rd, 2004, 09:41 AM
halfacat halfacat is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Arizona
Posts: 17 halfacat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS and SEO

Hi Deja,

Have a look at this forum:
http://www.highrankings.com/forum/i...p?showtopic=359

I tried to find something on DevShed's sister site seochat.com but the search results for: css +seo came up blank.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Article Discussion: The Power of CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT