473,614 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image in TH-Elem

Hi,

I'm trying to put an image into a table header via a css-style:

th.order1 {
background-image: url(asc.png) top right no-repeat padding-right: 5px;
}

asc.png is 16x16 pixels.

Unfortunately I only get a white background for the TH, when I ally the
style, no image is visible.
The header is about 100 pixel wide and 20 pixel high.

What is wrong here?

Thank you
Mar 30 '07 #1
4 2184
Chris Seidel wrote:
Hi,

I'm trying to put an image into a table header via a css-style:

th.order1 {
background-image: url(asc.png) top right no-repeat padding-right: 5px;
}

asc.png is 16x16 pixels.

Unfortunately I only get a white background for the TH, when I ally the
style, no image is visible.
The header is about 100 pixel wide and 20 pixel high.

What is wrong here?

Thank you

I think you must replace background-image with background

Though I'm not sure...
Mar 30 '07 #2
Harris Kosmidhs wrote:
I think you must replace background-image with background
Did not help :(
Mar 30 '07 #3
"Chris Seidel" <cs*****@arcor. de skrev :
>Unfortunatel y I only get a white background for the TH, when I ally the
style, no image is visible.
You can't have padding-right with a background-image.
Mar 30 '07 #4
On 30 Mar, 12:52, "Chris Seidel" <csei...@arcor. dewrote:
th.order1 {
background-image: url(asc.png) top right no-repeat padding-right: 5px;
}
Syntax is broken. You're using the wrong property name and you're also
missing a semi-colon to separate the two rules.

th.order1 {
background: url(asc.png) top right no-repeat;
padding-right: 5px;
}
Mar 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1997
by: John | last post by:
The following code works OK in IE 6.0 but does not work in Netscape 7. The image does not shift when one scrolls down but stays stationary in Netscape. Please help Thank you John function moveImage(e){ //shift image according to scroll
10
3561
by: sling blade | last post by:
Hello, I have an image map of a subdivision and each section of land in the subdivision has a lot number on it. Below the image map I have a table with details about each lot (eg Lot Number, Lot Size, Lot Price ect...) I would really like a way so the user can click on the image map and the corresponding row below the image will be highlighted.
8
6315
by: handersonVA | last post by:
Hello, I'd like to put small images around a big image, so when a small image is clicked, that image is shown as a big image in the center. how should I do that? I will use a table tag to organize the images, but how can I make this thing happen?
8
1389
by: gongcheng_g | last post by:
I got a piece of python script to upload file and it can upload it to different folders on server depend on the type of file is image or not. but I also want to restrict the size and dimensions of file if it is a image file.Could anyone help me out? Parameter List:id, file, title='',folder REQUEST=context.REQUEST content_type=file.headers
3
21251
by: jackiepatti | last post by:
QUESTION: I have a web page containing a form that contains an image instead of a submit button, e.g. <form name='myform' action='get' method='otherpage.asp'> <input type='image' src='picture.gif' name='myimage' id='myimage'> </form> When forms with image types are submitted, the value is not returned; instead, when the form is submitted, the XY coordinates of the where the user clicked on the image are sent. For example, if the user
10
6752
by: cjparis | last post by:
Hello everyone. If anyone can give me a hand I would be gratefull Am doing a site which requires a moving element and have used DHTML to do it. Have a simple Browser detect script to sort IE from Netscape. IE is ok but the Netscape browser including Firefox and Safari are not working now. Not sure why. The idea is that when you mouseover the arrows the gallery div moves to left and right. I have changed the script and now the image...
1
1162
by: theone2007 | last post by:
Hey guys i have a XSLT file and when i run it on my computer the images come up fine but when i run it on the site i get an x where the image is suppose to be and with firefox i get nothing. Can someone help me out... here is my coding: <th align="left"> <img src="image/folder.jpg" width="40" height="44" /> </th> <th align="left">PubMedID: <font size="2" face="Arial, Helvetica, sans-serif"> <xsl:value-of...
1
1136
by: sravani1 | last post by:
Hi I got the problem when run this code.That is when i retrive the data and image from the database table same image will displayed all that time when i give the different images .But other fields correctly displayed . plz tell the problem in that code. <?php $con = mysql_connect("localhost","root","sreeni"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db1", $con); // Find out about latest image
4
11983
by: kurapix | last post by:
Hi there!!! I've been working on recognizing EAN barcodes from images. Yes it's about recognizing barcodes from images but from bars not from the digit with the help of OCR software but with "Open Computer Vision library" (OpenCV). I haven't been successful yet. Here is my idea at how I should do it : - Image capture
5
7816
by: simon2x1 | last post by:
i have a website let assume it is www.mydomain.com i create an email in my control panel service@mydomain.com,am i to put the stmp configuration in my code below if so, why and where will i include it secondly in the message it want to include an image with the message so the receiver will so the message and the image(company logo) how can i do that. $to = "Joe Doe <joe.doe@domain.com>"; $from = "Paul Fred <service@mydomain.com>";...
0
8142
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,...
0
8589
jinu1996
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...
1
6093
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5548
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
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...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2573
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
bsmnconsultancy
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...

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.