|
Get your containers right with CSS!
I've been beating my head against the wall (proverbially, at least) with what should be a simple CSS style issue: I want to change the color and style of some text links on a Web page. I've been trying this:
but it wasn't working.
Finally it dawned on me: the "anchor container" can't accept all CSS styles, so a quick change to this: <span class="bl"><a href="uses.shtml">Google Adwords and Overture</a></span>and *poof* it's all working properly. The moral of this story: make sure that the containers you're using can accept the styles you're specifying. Note that you can always pop over to W3C (aka the World Wide Web Consortium) and read the official CSS specification documents too, if you're so inclined.
Categorized:
HTML and CSS
(Article 3722,
Written by Dave Taylor)
Tagged: Previous: The one page all sites should have: a sitemap Next: Monetizing site searches with Google WebSearch Subscribe!
Isn't it because of the way the CSS is written? The given code says "take anchors _within_ an element of class 'bl' and set the given properties." If this code is this: a.bl { color: #000; font-weight:900 } It should work, no? Now it says "take anchors of class 'bl' and set the given properties." Posted by: Mark at June 28, 2005 12:30 AMI have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |