473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

overide a table definition for link using CSS

82
Hi,

I have a table for which I defined a css rules like:
Expand|Select|Wrap|Line Numbers
  1. table#showBuddyHelpList a 
  2. {
  3.     text-decoration: none;
  4.     border-bottom: 1px dotted #f60;
  5.     color: #f60;
  6.     font-weight: bold;
  7. }
  8.  
  9. table#showBuddyHelpList a:hover 
  10. {
  11.     text-decoration: none;
  12.     color: #fff;
  13.     background: #f60;
  14. }
Now I have also inside the table an image with a link i.e.

<a .... > <img ..></a>

My question is how can I override the definition in the image link so no underline will appear in bot link and in hover event


2. Second question is there a way to get the image padding value through a css.

I tried:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('galleryImg2').style.padding


3. Third question is there a way to get the image width property through a css


I tried:

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('galleryImg2').style.width
Aug 10 '08 #1
1 1538
Dormilich
8,658 Expert Mod 8TB
for question 1 maybe this is of help:
Expand|Select|Wrap|Line Numbers
  1. table#showBuddyHelpList a img {
  2.     border: none; 
  3. }
question 2: the image does not have a padding (as far as I know), but its container will have.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('imgID').parentNode.style.padding
question 3: you can get the width from the image object itself
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('imgID').width
Aug 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: Anthony Williams | last post by:
Good morning, I'm currently designing a site, using CSS, and wish to create a variable width two-column layout, with header and footer, and one fixed-width column on the left. Previously, I...
2
by: rAinDeEr | last post by:
Hi, I have a requirement in which a pdf page has to be stored in the database. What should the table definition like ? Create table Page( pageID integer not null,CustID integer not null,...
19
by: Martin Eyles | last post by:
Hi, I want to make a whole table a link, so that clicking anywhere on it takes you to another page. Unfortunately the way I initially thought of doing this involved invalid html. I have tried a...
3
by: wolfing1 | last post by:
In several of my pages I need to show an area with a background image and HTML text in certain places. The restrictions I have is that I can't use javascript or CSS positioning like 'float', so I...
2
by: gurusshetty | last post by:
Hi Please help me in finding out no. of rows in data table inside dataset using c# thanks guru
0
by: Steve | last post by:
I tried to recover a corrupt database and the software gave me a report saying a certain table was not recoverable because the table definition was lost. 1. Is there a way to restore the table...
4
by: prasath03 | last post by:
Dear All, Can anybody help me about my coding, i'm inserting the image file to database using jsp. When i execute the code, the following error is occurred: java.sql.SQLException: Insert...
15
by: Killer42 | last post by:
Hi all. Ok, I'm using VB6 but I think the answer to this (if there is one) is more likely to be found in the Access forum. I have a situation where I've got tens of millions of records, spread...
2
by: BASSPU03 | last post by:
I used the Common Dialog API to store file paths on my form's underlying table. These paths are displayed in a textbox that I can click to open the selected file. Having stored the file paths in...
5
by: Shalini Bhalla | last post by:
I am trying to create a table in mysql using php , but the problem is that no. of fields and their datatype is taken from user in input form in am array .so , i want to know that how should i create...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.