Forum Moderators: not2easy
How do I control the image border colour for link and visited? (and prevent the 3d effect on linked image borders too).
I have the following in my CSS but I get the 3d effect and I get differnt colours for visited:
img {border-color:" #666666 ";}
a:link { color: #9966FF }
a:visited { color: #9966FF }
I don't usually go for inline styles, except in a pinch. I like my HTML really clean, so that even a non-techie could read it easily. Spiders seems to like that approach as well.
The height and width (correct me if I'm wrong guys) is not needed or required in html 4.01 and up. The reason they are used is to give tables a helping hand whilst being rendered. Just makes it a bit faster.
With a non-tables layout, as long as you're happy with your design 'flowing' into the browser window they are not needed.
Hope that helps..
Nick
i.e. if you've a large graphic that takes time to load and you don't specify the height and width..the rest of the page won't render until graphic has loaded..
by giving the graphic it's attributes, the page "knows" how much space to leave and continues rendering the rest of the page regardles of whether graphic has finished loading
but that could be my misunderstanding..
Suzy
:)
Yes, I think it is better to design sites that flow.
Moving slightly away from the original question: I get a problem with images overlapping text when the browser window is much reduced (using 'align="right"' in the html). Can this be prevented with CSS / DIV?
By giving your image a margin like
.largepic {
margin: 5px;
float: right; /* to replace your align="right" */
}
You should stop the image from mixing it up with the text. However, once your text squezes down to the length of the longest word in the block there's not much you can do about it...
Suzy, good point! If I have time I'll have to try look that up...
Nick