Quick HTML Help
Abdul (576 pencils) | Wed, 2005-04-27 16:24Right, I've got this far, but it's this last bit I'm stuck with. I've got the hyperlinked images sorted out with a border around them and what not, the only thing I can't quite figure out is how to change the border colour when you rollover the hyperlinked image.
This is what I've got so far, is this correct? What's wrong with it?
a img {
border: 1px solid #999;
}
a img:hover {
border: 1px solid #26456B;
}
Thanks for any help.
Commenting on this Forum topic is closed.

there is no hover state for "img", only for "a", so it should be:
a:hover img {
border: 1px solid #26456B;
}
Ah, thanks Ivan. :)
I'm learning HTML slowly. Never knew I'd learn it whilst bloggin' though.
This is not html, but CSS. But you know that. :)
Ok, so what's HTML then bro? CSS? HTML? What's the difference?
HTML = HyperText Markup Language
I could explain this to you, but I'd rather not run the risk of confusion so I'll let somebody else do it.
CSS = Cascading Style Sheets
I can say that the CSS file is intended to determine the text formatting of a site. Changes in text formatting to this one file will also change the text formatting on every single page of your site that calls the same CSS file, rather than having to hand-edit each page. Lately, CSS has been playing a bigger role in web design, causing designers to rely less on standard HTML tables and more on CSS divs. It's definitely worth learning.
I think I kind of see the difference now. If anyone knows any good websites explaining this sort of stuff, that'll be great. Please share. :)
[URL="http://www.bitsofabdul.blogspot.com]
[/URL]
http://htmldog.com
http://cssvault.com/
Nice one guys, I'll be reading through them sometime soon.
So, does Dreamweaver use CSS and FrontPage HTML? Or am I getting confused again?
To have a web site you need at least html or both html and CSS. CSS only controls the way your standard html looks like.
Dreamweaver can handle both. I'm not sure about Frontpage, never used it.
Ok, so I was trying some more HTML myself (this is HTML right?) and once again, I get it wrong! What's wrong with this coding? (The colour change represents a line.)
I'm trying to get it to show the comment date and time with a permanent link to the comment too. It doesn't show the date (just the time) and a link direct to the comment doesn't work either.
Any ideas anyone? Thanks in advance.