
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.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.
Categorized:
HTML and CSS
(Article 3722)
Tagged: Previous: The one page all sites should have: a sitemap Next: Monetizing site searches with Google WebSearch Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. 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 a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|