given that the img border >0, how is a border color specified?
Chuck 8 128597
In article <SLUcd.271438$D%.166650@attbi_s51>, ch*****@acm.org says... given that the img border >0, how is a border color specified?
Best to use styles:
<img style="border: medium Red;">
On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.com> wrote: In article <SLUcd.271438$D%.166650@attbi_s51>, ch*****@acm.org says... given that the img border >0, how is a border color specified?
Best to use styles:
<img style="border: medium Red;">
Better to do it in a stylesheet rather than inline, of course.
You could set things separately, as with:
img {
border-width: 3px;
border-color: #ff0000;
border-style: dotted;
}
Or all together:
img {
border: 3px #ff0000 dotted;
}
Realize too that if the image is in an anchor, the border will take the
color of the link. But you can change that if you desire.
In article <op**************@news.individual.net>, ne*****@yahoo.com
says... On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.com> wrote:
In article <SLUcd.271438$D%.166650@attbi_s51>, ch*****@acm.org says... given that the img border >0, how is a border color specified? Best to use styles:
<img style="border: medium Red;">
Better to do it in a stylesheet rather than inline, of course.
Why so? I think having a stylesheet adds weight when you can easily
do it inline.
Realize too that if the image is in an anchor, the border will take the color of the link. But you can change that if you desire.
Yes, forgot to mention that.
Mr.Clean wrote; In article <op**************@news.individual.net>, ne*****@yahoo.com says... On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.com> wrote:
In article <SLUcd.271438$D%.166650@attbi_s51>, ch*****@acm.org says... > given that the img border >0, how is a border color specified?
Best to use styles:
<img style="border: medium Red;"> Better to do it in a stylesheet rather than inline, of course. Why so?
Because it is much more readable, and generally better.
I think having a stylesheet adds weight when you can easily do it inline.
Well, supposing you had not more than three unique style rules (more will
be heavier). But inline styles are never ever nice. If you have unique
style rules, use embedded stylsheet. If you have any style rule used in
more than one page, use external stylesheet. Or, just use external, it
doesn't add much weight.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
On Mon, 18 Oct 2004 17:01:03 -0500, Mr.Clean <mrclean@p&g.com> wrote: ne*****@yahoo.com says... Better to do it in a stylesheet rather than inline, of course. Why so? I think having a stylesheet adds weight when you can easily do it inline.
But if the style would apply to any other page, you are better off with a
stylesheet. Most styles will.
"Mr.Clean" <mrclean@p&g.com> wrote in message
news:<1098136863.+dIRbGDbbSufrnw0zn8Kgw@teranews>. ..
In article <op**************@news.individual.net>, ne*****@yahoo.com
says... On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.com> wrote: In article <SLUcd.271438$D%.166650@attbi_s51>, ch*****@acm.org
says... given that the img border >0, how is a border color specified? Best to use styles:
<img style="border: medium Red;"> Better to do it in a stylesheet rather than inline, of course. Why so? I think having a stylesheet adds weight when you can easily
do it inline. Realize too that if the image is in an anchor, the border will take the color of the link. But you can change that if you desire.
Yes, forgot to mention that.
Thanks to you all! Have opted for external style sheets. But, regarding
Realize too that if the image is in an anchor, the border will take the color of the link. But you can change that if you desire.
How do I change it? My images are anchors. Sorry to be so dense. :(
Chuck
On Tue, 19 Oct 2004 17:32:38 GMT, Chuck <ch*****@acm.org> wrote: How do I change it? My images are anchors. Sorry to be so dense. :(
Well, first you must decide if you should change it. The border will take
the link colors, and in most situations we want this, it tells the user
whether they've visited the link or not. It also signals that it is a
link. So before you do this, be sure that 1) the image is quite obviously
a link, and 2) the lack of visited/unvisited coloring is not a usability
issue.
That said,
a:link img, a:visited img, a:focus img, a:hover img, a:active img {
border: 3px green solid;
}
or something like that.
"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net... On Tue, 19 Oct 2004 17:32:38 GMT, Chuck <ch*****@acm.org> wrote:
How do I change it? My images are anchors. Sorry to be so dense. :(
Well, first you must decide if you should change it. The border will take the link colors, and in most situations we want this, it tells the user whether they've visited the link or not. It also signals that it is a link. So before you do this, be sure that 1) the image is quite obviously a link, and 2) the lack of visited/unvisited coloring is not a usability issue.
That said,
a:link img, a:visited img, a:focus img, a:hover img, a:active img { border: 3px green solid; }
or something like that.
Thanks, Neal. That did the trick! Just what the doctor ordered.
Chuck This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Paweł Gałecki |
last post by:
How can I set a different border color for a table row?
All I found in the MSDN for <TR> was:
Scripting object.borderColor
but it doesn't work for <TR> though it works for <TD>. I would like to...
|
by: Chris Beall |
last post by:
I'm displaying an image that is also a link against a black background.
In Netscape 7.1, the current background color is displayed as a
horizontal bar below the image. This allows :hover effects...
|
by: Headless |
last post by:
The following code renders a visible border around the hyperlinked image
using the UA's default colours for links in IE and Moz:
a img{border-width:1px}
<a href="foobar.html"><img...
|
by: Jay |
last post by:
I need help!!
I'm using IE 6 and look at the bottom-left corner of the image border:
http://pages.infinit.net/jaylac/image.html
It does that when i use border="1" or any css border style. I...
|
by: Sheila King |
last post by:
Hello,
Am at my wits end, after spending quite a bit of time looking at online CSS
docs, reading FAQs, searching this newsgroup and validating my CSS
document.
Was trying to copy, to some...
|
by: jcrouse |
last post by:
Is there a quick and easy way to change the color of a label controls border
from the default black to white?
Thank you,
John
|
by: roN |
last post by:
Hi,
I have an image and I would like to draw a border around it, I tried:
<p style="border:1px border-style:solid; border-color:#EEEEEE;
background-color:#FFFFFF;"><img src="./images/header.jpg"...
|
by: David Veeneman |
last post by:
Is there a simple way to change a UserControl border color?
I'm creating a UserControl that will have a border, using the
UserControl.BorderStyle property. The standard border is black; I'd like...
|
by: =?Utf-8?B?Q2xhZXNXZWRpbg==?= |
last post by:
I want my application to have a special color on the Window forms borders.
Not the standard one (which the user has set up in his desktop-properties)...
How can I do this? I can change...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |