CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2003, 12:16 PM
blursotong blursotong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 45 blursotong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
CSS class for <a> not working in N6

I'm trying to convert the following codes which worked in IE5.5up, to be Netscape 6 compatible.

What it's supposed to do is to display a few images in a horizontal row, which links to another page when clicked. I'm using a css file to set the class for the <a> link to display the images.

I know a workaround is to simply enclose the <a> tag around an <img> tag, where the "src" of the <img> is the "url" of the original <a> class, like this:

<a href="http://www.google.com"><img src="image1.gif"></a><a class="btnorg" href="http://www.yahoo.com"><img src="image2.gif"></a>


But that will mean an extensive change in all of the original codes.

I've also tried to include "position: absolute" and "position: relative" in the css class, but it didn't help.

I was wondering what could be wrong, and whether it could be just something small I missed out.


Here are the codes:

File: adm.css:

a.btnorg { color: white; font-family: Arial; text-decoration: none; background: url(image1.gif) no-repeat; text-align: left; width: 74px; height: 74px; clip: auto }

a.btnpeople { color: white; font-family: Arial; text-decoration: none; background: url(image2.gif) no-repeat; text-align: left; width: 74px; height: 74px }


File: test.html
<html>
<head>
<link rel="stylesheet" href="../styles/adm.css">
<style media="screen" type="text/css"><!--
#consolepanel { position: absolute; z-index: 3; top: 50px; left: 10px; width: 704px; height: 504px; visibility: visible }
//--></style>
</head>

<body bgcolor="#444444">
<div id="consolepanel">

<table border="2">
<tr>
<td>
<table border="1">
<tr>
<td>
<span>
<a class="btnpeople" href="http://www.google.com"></a><a class="btnorg" href="http://www.yahoo.com"></a>
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>

</div>
</body>
</html>

Reply With Quote
  #2  
Old June 2nd, 2003, 04:21 PM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 21 h 56 m 52 sec
Reputation Power: 14
Add 'float:left;' to both classes.
This way, both 'a' elements become blocks AND are displayed next to each other.

Hope this helps,
Jeroen

Reply With Quote
  #3  
Old June 2nd, 2003, 10:23 PM
blursotong blursotong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 45 blursotong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
Great!! You've saved me!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS class for <a> not working in N6

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap