I have an anchor using a class that defines a hover subclass. The issue is
that the anchor itself doesn't have any border and when hovered it adds a
border, the problem is that when it adds the border, the text gets shifted.
Does anyone have any idea how to correct this issue? I would like to create
a transparrent or invisible border (spacer) so that there's room for the
visible border to appear when needed but I cannot seem to get it to work.
Visit http://callandermats.adconn.com/ and hover over left links to see what
I mean. The style sheet for this is:
..menu{
font-size:12px;
text-decoration:none ;
}
..menu:hover{
border-style:groove;
border-width:1;
width=100%;
}
Thanks! 58 5927
"Jon Glazer" <jg************ ***@adconn.com> wrote: I have an anchor using a class that defines a hover subclass. The issue is that the anchor itself doesn't have any border and when hovered it adds a border, the problem is that when it adds the border, the text gets shifted. Does anyone have any idea how to correct this issue? I would like to create a transparrent or invisible border (spacer) so that there's room for the visible border to appear when needed but I cannot seem to get it to work.
border-color: transparent; or whatever your background colour is if
you have a solid backgound rather than an image.
Visit http://callandermats.adconn.com/
Lots of syntax errors to fix: http://validator.w3.org/check?uri=ht...ts.adconn.com/ http://jigsaw.w3.org/css-validator/v...1&profile=css2
Anyway, I see no shifting text in either IE6 or Opera 7.54. In Opera
only the left and right borders show up, not the top and bottom ones,
and the links are all different widths (probably because Opera is
correctly ignoring your bogus width, see below).
and hover over left links to see what I mean. The style sheet for this is:
.menu{ font-size:12px; text-decoration:none ; }
Pixels are a very bad idea for font-size. Percentages, or not setting
a size at all, are much preferable.
.menu:hover{ border-style:groove; border-width:1;
1 what?
width=100%; }
Invalid syntax and width doesn't apply to inline elements so pointless
Steve
Wow the syntax errors are funny. The site is totally valid and I cannot
find one truthfull error in that validator tool.
Oh well. It works.
As for the problem I had, I resolved it by creating a border the same color
as the background.
Thanks,
Jon
"Steve Pugh" <st***@pugh.net > wrote in message
news:pa******** *************** *********@4ax.c om... "Jon Glazer" <jg************ ***@adconn.com> wrote:
I have an anchor using a class that defines a hover subclass. The issue is that the anchor itself doesn't have any border and when hovered it adds a border, the problem is that when it adds the border, the text gets shifted. Does anyone have any idea how to correct this issue? I would like to create a transparrent or invisible border (spacer) so that there's room for the visible border to appear when needed but I cannot seem to get it to work.
border-color: transparent; or whatever your background colour is if you have a solid backgound rather than an image.
Visit http://callandermats.adconn.com/
Lots of syntax errors to fix: http://validator.w3.org/check?uri=ht...ts.adconn.com/ http://jigsaw.w3.org/css-validator/v...1&profile=css2
Anyway, I see no shifting text in either IE6 or Opera 7.54. In Opera only the left and right borders show up, not the top and bottom ones, and the links are all different widths (probably because Opera is correctly ignoring your bogus width, see below).
and hover over left links to see what I mean. The style sheet for this is:
.menu{ font-size:12px; text-decoration:none ; }
Pixels are a very bad idea for font-size. Percentages, or not setting a size at all, are much preferable.
.menu:hover { border-style:groove; border-width:1;
1 what?
width=100%; }
Invalid syntax and width doesn't apply to inline elements so pointless
Steve
Re: http://validator.w3.org/check?uri=ht...ts.adconn.com/
Jon Glazer <jg************ ***@adconn.com> wrote: Wow the syntax errors are funny. The site is totally valid and I cannot find one truthfull error in that validator tool.
Huh?
You mean that http://callandermats.adconn.com/ isn't missing a bunch of
required attributes (TYPE for STYLE and SCRIPT elements, ALT for IMG
elements)?
That it doesn't use attributes that are not defined in the DTD that it
claims to use (HEIGHT in TABLE and TR elements, BACKGROUND in TD elements)?
That there aren't extraneous <html> and <head> tags in the middle of the
document?
That there aren't missing quotes around attribute values that require
quotes, causing a cascade of problems when the SGML parser tries to parse
the attribute values as markup?
--
Darin McGrew, da***@TheRallye Club.org, http://www.TheRallyeClub.org/
A gimmick car rallye is not a race, but a fun puzzle testing your
ability to follow instructions. Upcoming gimmick car rallye in
Silicon Valley: TRC's 24th Anniversary (Saturday, February 5)
"Jon Glazer" <jg************ ***@adconn.com> wrote:
Upside down posting fixed. "Steve Pugh" <st***@pugh.net > wrote : "Jon Glazer" <jg************ ***@adconn.com> wrote:
I have an anchor using a class that defines a hover subclass. The issue is that the anchor itself doesn't have any border and when hovered it adds a border, the problem is that when it adds the border, the text gets shifted. Does anyone have any idea how to correct this issue? I would like to create a transparrent or invisible border (spacer) so that there's room for the visible border to appear when needed but I cannot seem to get it to work. border-color: transparent; or whatever your background colour is if you have a solid backgound rather than an image.
Visit http://callandermats.adconn.com/
Lots of syntax errors to fix: http://validator.w3.org/check?uri=ht...ts.adconn.com/ http://jigsaw.w3.org/css-validator/v...1&profile=css2
Wow the syntax errors are funny.
Yeah, there's a certain gallows humour in examining a really badlt
coded web site.
The site is totally valid
It obviously isn't. If it was valid the validator wouldn't have failed
it.
and I cannot find one truthfull error in that validator tool.
Why not? They're all errors and they're all accurately reported.
Oh well. It works.
How many browsers did you test it in? 1? 2? 3? 10? 100?
I've already given you examples of how your poor coding means that the
page doesn't display as you want in Opera and I now see that Firefox
agrees with Opera.
Did you test with images turned off? (obviously not, unless you think
that black text on a black background counts as working) With
stylesheets turned off? With a user stylesheet? With a larger than
normal font size? With a smaller than normal font size? On a speech
browser? With JavaScript turned off? On a Mac? On Unix? Have you tried
printing the page?
As for the problem I had, I resolved it by creating a border the same color as the background.
Before or after I suggested doing just that? Just curious as to
whether I totally wasted my time.
Steve
Right. None of those issues are outstanding problems given that they do not
cause errors on any browser (and I tested 8 different ones).
Alt tags are definitely not a requirement.
"Darin McGrew" <mc****@stanfor dalumni.org> wrote in message
news:cs******** **@blue.rahul.n et... Re: http://validator.w3.org/check?uri=ht...ts.adconn.com/ Jon Glazer <jg************ ***@adconn.com> wrote: Wow the syntax errors are funny. The site is totally valid and I cannot find one truthfull error in that validator tool.
Huh?
You mean that http://callandermats.adconn.com/ isn't missing a bunch of required attributes (TYPE for STYLE and SCRIPT elements, ALT for IMG elements)?
That it doesn't use attributes that are not defined in the DTD that it claims to use (HEIGHT in TABLE and TR elements, BACKGROUND in TD elements)?
That there aren't extraneous <html> and <head> tags in the middle of the document?
That there aren't missing quotes around attribute values that require quotes, causing a cascade of problems when the SGML parser tries to parse the attribute values as markup? -- Darin McGrew, da***@TheRallye Club.org, http://www.TheRallyeClub.org/ A gimmick car rallye is not a race, but a fun puzzle testing your ability to follow instructions. Upcoming gimmick car rallye in Silicon Valley: TRC's 24th Anniversary (Saturday, February 5)
"Steve Pugh" <st***@pugh.net > wrote in message
news:ln******** *************** *********@4ax.c om... "Jon Glazer" <jg************ ***@adconn.com> wrote:
Upside down posting fixed.
"Steve Pugh" <st***@pugh.net > wrote : "Jon Glazer" <jg************ ***@adconn.com> wrote:
I have an anchor using a class that defines a hover subclass. The issue is that the anchor itself doesn't have any border and when hovered it adds a border, the problem is that when it adds the border, the text gets shifted. Does anyone have any idea how to correct this issue? I would like to create a transparrent or invisible border (spacer) so that there's room for the visible border to appear when needed but I cannot seem to get it to work.
border-color: transparent; or whatever your background colour is if you have a solid backgound rather than an image.
Visit http://callandermats.adconn.com/
Lots of syntax errors to fix: http://validator.w3.org/check?uri=ht...ts.adconn.com/ http://jigsaw.w3.org/css-validator/v...1&profile=css2
Wow the syntax errors are funny.
Yeah, there's a certain gallows humour in examining a really badlt coded web site.
The site is totally valid
It obviously isn't. If it was valid the validator wouldn't have failed it.
and I cannot find one truthfull error in that validator tool.
Why not? They're all errors and they're all accurately reported.
Oh well. It works.
How many browsers did you test it in? 1? 2? 3? 10? 100?
I've already given you examples of how your poor coding means that the page doesn't display as you want in Opera and I now see that Firefox agrees with Opera.
Did you test with images turned off? (obviously not, unless you think that black text on a black background counts as working) With stylesheets turned off? With a user stylesheet? With a larger than normal font size? With a smaller than normal font size? On a speech browser? With JavaScript turned off? On a Mac? On Unix? Have you tried printing the page?
As for the problem I had, I resolved it by creating a border the same color as the background.
Before or after I suggested doing just that? Just curious as to whether I totally wasted my time.
Steve
OOps sorry steve, forgot to mention that, as I was posting the problem a
possible solution occured to me. You just responded too fast for me to say
I got it fixed. Thanks for the help though!
Oh, and one other simple example, there are not extranious <HEAD> tags in
the document. What it is evidently picking up is some javascript that
controls a separate window. One reason I don't trust these things.
Jon
"Darin McGrew" <mc****@stanfor dalumni.org> wrote in message
news:cs******** **@blue.rahul.n et... Re: http://validator.w3.org/check?uri=ht...ts.adconn.com/ Jon Glazer <jg************ ***@adconn.com> wrote: Wow the syntax errors are funny. The site is totally valid and I cannot find one truthfull error in that validator tool.
Huh?
You mean that http://callandermats.adconn.com/ isn't missing a bunch of required attributes (TYPE for STYLE and SCRIPT elements, ALT for IMG elements)?
That it doesn't use attributes that are not defined in the DTD that it claims to use (HEIGHT in TABLE and TR elements, BACKGROUND in TD elements)?
That there aren't extraneous <html> and <head> tags in the middle of the document?
That there aren't missing quotes around attribute values that require quotes, causing a cascade of problems when the SGML parser tries to parse the attribute values as markup? -- Darin McGrew, da***@TheRallye Club.org, http://www.TheRallyeClub.org/ A gimmick car rallye is not a race, but a fun puzzle testing your ability to follow instructions. Upcoming gimmick car rallye in Silicon Valley: TRC's 24th Anniversary (Saturday, February 5)
"Jon Glazer" <jg************ ***@adconn.com> wrote: Alt tags are definitely not a requirement.
Of course they're not, but only because they don't exist.
alt attributes on the other hand are mandatory.
Or is this a private page that no one on the actual WWW wil ever look
at?
Steve
"Jon Glazer" <jg************ ***@adconn.com> wrote: Oh, and one other simple example, there are not extranious <HEAD> tags in the document. What it is evidently picking up is some javascript that controls a separate window. One reason I don't trust these things.
Liar.
The page http://callandermats.adconn.com/
has
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--EzCat Styles-->
<style>
.... bunch of CSS
</style>
<script src="homefade.j s"></script>
<html>
<head>
So it does have the <html> and <head> in the middle of the page.
How hard would it be to move them to where they belong?
Steve This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hostile17 |
last post by:
I've been trying to figure out a good way to make a CSS layout with
nice-looking 1-pixel borders around the table cells.
The only broadly compatible way to do this I know of is to have
* the border of the table set to zero
* the cellspacing of the table set to one
* the background color set to black
* the table cell background color set to white
|
by: Haines Brown |
last post by:
This may seem a pointless question, but I'm trying work around an
inconsistency between browsers.
I have a template that contains a division that holds a text that
sometimes exists and sometimes not. I use top and bottom borders to
separate this material from its environment:
.header {
font-size: smaller;
border-bottom: solid black thin;
|
by: Melissa |
last post by:
A form in my database has multiple subforms. If any subform has no data, the
borders of the subform still display on screen and also are printed if I
print the main form. Reports are different. If a subreport has no data, the
borders of the subreport do not appear in Print View nor do they print with
the report. I need the borders to print whether the subreport has data or
not. Is there any way to get the subreport borders to print when a...
|
by: Melissa |
last post by:
Sorry if this becomes a repeat! I am having trouble with my newsreader and
don't know if this got posted yeserday or not or if anyone responded.
A form in my database has multiple subforms. If any subform has no data, the
borders of the subform still display on screen and also are printed if I
print the main form. Reports are different. If a subreport has no data, the
borders of the subreport do not appear in Print View nor do they print...
|
by: grlgeek |
last post by:
I have a report for creating the switchboard labels for our phone system
receptionist switchboard. The template has 12 records per column.
I setup a report that will create the labels and put a dotted line around
them so the receptionist can easily cut them out. The report is setup with
columns so that 6 columns fit across a page. 12 records per column, 6
columns across a page, each record has a dotted line around the box.
The...
| |
by: Glen Vermeylen |
last post by:
Hi,
For a project at school we have to automate the assignment of seats in
classrooms to students during the exams.
The lady who previously did everything manually kept the layouts of the
classrooms in an excel-document: 1 sheet per classroom, and she marked
the cells which represent the seats with a border.
The problem however is that she sometimes merged cells together to get a
better layout.
|
by: steve |
last post by:
Hi All
I urgently need help on setting datagridview cell borders at runtime
I found some code on the web from
Programming Smart Client Data Applications with .NET 2.0
by Brian Noyes
See below
This is what I have been trying to achieve, but when I run it ALL the cell
|
by: Michael Redbourn |
last post by:
Hi,
I just switched from FP to DW and am very very happy !
So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I
thought that I'd try and find out how to add borders for browers like
Firefox which don't support them.
Not sure if I've explained the above well but my borders display in IE
but not in Firefox.
|
by: nicstel |
last post by:
Hello,
I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line and what is the all other border type name?
"borders: top double, bottom double, left double, right double;"
Thank You
Nicolas
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |