given that the img border >0, how is a border color specified?
Chuck 8 128624
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.co m> 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.individ ual.net>, ne*****@yahoo.c om
says... On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.co m> 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.individ ual.net>, ne*****@yahoo.c om says... On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.co m> 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.co m> wrote: ne*****@yahoo.c om 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.co m> wrote in message
news:<109813686 3.+dIRbGDbbSufr nw0zn8Kgw@teran ews>...
In article <op************ **@news.individ ual.net>, ne*****@yahoo.c om
says... On Mon, 18 Oct 2004 15:03:34 -0500, Mr.Clean <mrclean@p&g.co m> 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.or g> 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.ind ividual.net... On Tue, 19 Oct 2004 17:32:38 GMT, Chuck <ch*****@acm.or g> 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
change color of the border of the entire row in a response to onMouseover
and onMouseout events.
Any ideas?
|
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 that change
the background color to have a visible effect, as this bar changes
color. By default, it appears that the color is inherited from the body
color, i.e. with no link style applied, the bar is black, and invisible
against the background....
|
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 src="foobar.jpg" alt="foobar"></a>
but not in Opera.
I imagine that border colour normally defaults to transparent, but
|
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 saw that
it is not happening in IE 5.5, neither in NS6 or OPera 7.
Does anybody have ever seen that? I'm sure it wasn't like that a few
weeks ago (still with IE 6)... Could it be IE updates??? I'm really
|
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 extent, the "stylish buttons" tutorial here:
http://www.webreference.com/programming/css_stylish/
and have had mostly success with it, however one stupid thing isn't
| |
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" width="800"
height="130" border="0" ><br>
but I don't get a border, why not? Where am I going wrong?
Thank you!
--
chEErs roN
|
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 to
change the color to something a little more appealing. I've tried overriding
OnPaint, like this:
public partial class MyControl : UserControl
{
public MyControl()
|
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 background/foreground colors etc and the
border also have some propereties, but not the color and shading...
Claes
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |