473,397 Members | 2,084 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,397 software developers and data experts.

simple tag just wouldn't apply :o

Hi,

I try to apply a simple tag to an image like that:

<td><img src="../images/lower-left-corner.png" alt="lower-left-corner"
width="26" height="19" class="right-middle" /></td>
the css-tag looks like:
..right-middle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #FFFFFF;
border-top-width: 0px;
border-right-width: 1px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: solid;
border-bottom-style: none;
border-left-style: none;
border-right-color: #999999;

it looks all right to me but the tag would just not apply, I cannot see a
line on the right side, why not? What is going wrong? Thank you!

roN
Nov 23 '06 #1
3 1481
shawnews wrote:
Hi,

I try to apply a simple tag to an image like that:

<td><img src="../images/lower-left-corner.png" alt="lower-left-corner"
width="26" height="19" class="right-middle" /></td>
the css-tag looks like:
.right-middle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #FFFFFF;
border-top-width: 0px;
border-right-width: 1px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: solid;
border-bottom-style: none;
border-left-style: none;
border-right-color: #999999;

it looks all right to me but the tag would just not apply, I cannot see a
line on the right side, why not? What is going wrong? Thank you!
The only thing I see wrong is the missing closing curly brace.

--
Gus
Nov 23 '06 #2
shawnews wrote:
I try to apply a simple tag to an image like that:

<td><img src="../images/lower-left-corner.png" alt="lower-left-corner"
width="26" height="19" class="right-middle" /></td>
the css-tag looks like:
.right-middle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #FFFFFF;
Why do you want to assign font settings and text colors to an image?
border-top-width: 0px;
border-right-width: 1px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: solid;
border-bottom-style: none;
border-left-style: none;
border-right-color: #999999;

it looks all right to me but the tag would just not apply, I cannot see a
line on the right side, why not? What is going wrong? Thank you!
How about a URL to the page in question? Maybe it is your chosen image
causing the problem.

If this is a decorative image, you should use alt="" ...

--
-bts
-Motorcycles defy gravity; cars just suck
Nov 24 '06 #3
shawnews wrote:
Hi,
Hi,
I try to apply a simple tag to an image like that:

<td><img src="../images/lower-left-corner.png" alt="lower-left-corner"
width="26" height="19" class="right-middle" /></td>
the css-tag looks like:
"looks *like*"? Or *is*?
.right-middle {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #FFFFFF;
border-top-width: 0px;
border-right-width: 1px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: solid;
border-bottom-style: none;
border-left-style: none;
border-right-color: #999999;

it looks all right to me but the tag would just not apply, I cannot see a
line on the right side, why not? What is going wrong? Thank you!

roN
Besides the missing closing brace (or an actual URL to the real code),
I'm missing some info about your visual acuity. Speaking for myself, I
can't really see the 1-pixel by 19-pixel gray line at the right of an
image either. I know it's there, because I can change it to, say, 6px,
and there it is. (Yes, I copied your code-lets, inserted them into a
real HTML page, fixed your code, found a png file, edited and saved the
file, and tested it in two browsers. You're welcome.)

Are you *sure* it's not there (maybe because of the closing brace), or
is it just too tiny for you to detect?

--
John
Nov 24 '06 #4

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

Similar topics

5
by: overbored | last post by:
I can do this: int asdf; int* zxcv = asdf; but not this: int asdf; int** zxcv = asdf;
47
by: linda | last post by:
I am completely new to this. I hand-coded my first site. It¹s pretty basic. I found the validator for CSS on w3.org and this is the result I got. Warnings * Line : 2 font-family: You are...
1
by: PerryC | last post by:
Can someone help me accomplish the following in a MSAccess Report: 1. Check if Me.Discipline = "RN" (within the source query) 2. Then check the Me.YearOfEmployment: (again within the same source...
12
by: strict9 | last post by:
Hello all, I'm writing several queries which need to do various string formating, including changing a phone number from (123) 456-7890. After some problem with data mismatches, I finally got it...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
29
by: Knut Olsen-Solberg | last post by:
I try to change the text in a <p> using getElementById(). I wonder what properties exists, and which one to use here. (The following does not work.) Regards Knut ______________________ ...
19
by: mathieu | last post by:
Hello, I am trying to parse a string and I am surprised by the result(*) When using: sscanf(s, "%03u%c", &val, &f); If a number less than 3 digits is found, shouldn't sscanf report that ? ...
8
by: Jon Harrop | last post by:
I am trying to learn C# and .NET programming in general but I am finding it very hard going. To start with, I'd like to translate some trivial functions from other languages that I am familiar with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.