Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Needs Help with Fixing Colors for Links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedNeeds Help with Fixing Colors for Links

 Post Reply Post Reply Page  12>
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Direct Link To This Post Topic: Needs Help with Fixing Colors for Links
    Posted: 18 June 2005 at 1:36pm
Please look at both pictures: Calendar and Eternal Life at http://www.mountmoriahbc.org/samplehomepage.asp. Calendar is linked. Eternal Life is not linked. I am frustrated because I want the border around Calendar to be black. Both are supposed to be linked. I removed the link from Eternal Life to show you what I'm talking about. I would like for the border to be black for both pictures that are linked. How do I do this?

Here's my HTML code for both links:

<a href="calendar.asp"><img src="CalendarLink.jpg" width="160" height="145" border="1" BORDERCOLORDARK="#ffffff" BORDERCOLORLIGHT="#000000"></a></p>
<p><img src="EternalLifeLink.jpg" width="160" height="145" border="1" BORDERCOLORDARK="#ffffff" BORDERCOLORLIGHT="#000000"></p></td>
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 18 June 2005 at 3:00pm
You're getting a 1 px blue border around calendar because it's picking up hyperlink color attributes which are overriding the image border.


Try putting the img in a div and applying the borders to the div while using css to turn off borders/decoration for hyperlinks associated with images.

The css would probably look something like
a.image {text-decoration: none; border: none;}

But you might have to go into explicit detail...
a.image:link {text-decoration: none; border: none;}
a.image:visited {text-decoration: none; border: none;}
a.image:hover {text-decoration: none; border: none;}
a.image:active {text-decoration: none; border: none;}


Come to think of it, you could probably forget about using the div and just apply your borders as part of the a.image css.



Lead me not into temptation... I know the short cut, follow me.
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Direct Link To This Post Posted: 20 June 2005 at 2:34am
Unfortunately, this didn't work. Look at http://www.mountmoriahbc.org/samplehomepage.asp.
 
My code is:
 
<STYLE TYPE="text/css">
<!--
a.image:link {color: Black; text-decoration: none; border: none;}
a.image:visited {color: Black; text-decoration: none; border: none;}
a.image:hover {color: Black; text-decoration: none; border: none;}
a.image:active {color: Black; text-decoration: none; border: none;}
-->
</STYLE>
 
<tr>
    <td height="846" valign="top"> Under Construction. </td>
    <td valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td valign="top"><p><div><a class=image href="calendar.asp"><img src="CalendarLink.jpg" width="160" height="145" border="1" BORDERCOLORDARK="#ffffff" BORDERCOLORLIGHT="#000000"></a></div></p>
      <p><img src="EternalLifeLink.jpg" width="160" height="145" border="1" BORDERCOLORDARK="#ffffff" BORDERCOLORLIGHT="#000000"></p></td>
  </tr>
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Direct Link To This Post Posted: 20 June 2005 at 7:24pm
Can someone please help me with this?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 20 June 2005 at 9:20pm
Tested this one if FF, IE, Netscape, and Opera.
Set border to 4xp so I could see it - lol.
Have to specify class="img" in the img tag for x-browser compatibility.


<STYLE type="text/css">
.img {
    padding: 0px;
    margin: 0px;
    border-top: 0px;
    border-left: 0px;
    border-bottom: 4px solid #000000;
    border-right: 4px solid #000000;
}
</STYLE>


    <TD valign=top>
        <a href="mm_files/calendar.asp" >
        <IMG class="img" height=145 src="CalendarLink.jpg" width=160 ></a>
        <P><IMG class="img" height=145 src="EternalLifeLink.jpg" width=160></P>
     </TD>


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Direct Link To This Post Posted: 20 June 2005 at 10:33pm
Thanks! I noticed that it seems to take a longer time to download the pictures. Is it because of the CSS?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 21 June 2005 at 9:37am
Seems ro render ok this morning. CSS is pretty fast. Javascript is pretty slow. Might have just been server load.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Posted: 21 June 2005 at 7:03pm
if i wanted to have different styles for different hyperlinks (say a horizontal row being black and a vertical set being white or something like that), how would i go about doing that? would i just use a.hlink1:link and a.hlink2:link and set the class of the <a> to hlink1 for the 1st on and hlink2 for the second one?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.