Creativebits.org

an All Creative World site
Abdul's picture
576 pencils

Quick HTML Help

Right, 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.

Ivan's picture

there is no hover state for "img", only for "a", so it should be:
a:hover img {
border: 1px solid #26456B;
}

Abdul's picture
576 pencils

Ah, thanks Ivan. :)

I'm learning HTML slowly. Never knew I'd learn it whilst bloggin' though.

Ivan's picture

This is not html, but CSS. But you know that. :)

Abdul's picture
576 pencils

Ok, so what's HTML then bro? CSS? HTML? What's the difference?

Dan's picture
33 pencils

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.

Abdul's picture
576 pencils

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]

Anonymous's picture
Ivan's picture
Abdul's picture
576 pencils

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?

Ivan's picture

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.

Abdul's picture
576 pencils

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.

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace