HighDots Forums  

font background color

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss font background color in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
krraleigh
 
Posts: n/a

Default font background color - 09-16-2008 , 04:54 AM






I am using a bk image behind my links and for some reason there is a strip
that is sitting over the top and to the side of the image the same color as
the bgcolor of the cell.

Can you take a look at this and tell me what you think might be the problem?
http://www.greaterhouseofprayer.com/about.html

my css code: // it has been validated

..navLeftParent {
padding-top: 40px;
}
..navLeft {
font-size: 1.1em;
font-weight:600;
background-image:url(../images/navBgButton.jpg);
background-repeat:no-repeat;
width: 157px;
height: 35px;
background-position:center;
background-color: #FEB80A;
}
..navLeft span{
position:relative;
left: 30px;
top: 6px;
background-color: #FEB80A;
}
..navLeft a:visited {
color: #994D4D;
text-decoration: none;
background-image:url(../images/navBgButton.jpg);
background-color: #FEB80A;
}
..navLeft a:link {
color: #994D4D;
text-decoration: none;
background-image:url(../images/navBgButton.jpg);
background-color: #FEB80A;
}
..navLeft a:hover {
color: #FFFFFF;
text-decoration: underline;
background-image:url(../images/navBgButton.jpg);
background-color: #FEB80A;
}

any insight would be greatly appreciated
thank you
Kevin


Reply With Quote
  #2  
Old   
John Hosking
 
Posts: n/a

Default Re: font background color - 09-16-2008 , 06:59 AM






krraleigh wrote:
Quote:
I am using a bk image behind my links and for some reason there is a
strip that is sitting over the top and to the side of the image the same
color as the bgcolor of the cell.

Can you take a look at this and tell me what you think might be the
problem?
http://www.greaterhouseofprayer.com/about.html

my css code:
is at the URL for us to see.

// it has been validated

Good thought! But I see an error on the CSS, and 20 erors on the markup.

Delete the BG image from the link styles
..navLeft a:visited, .navLeft a:link, and .navLeft a:hover
background-image:url(../images/navBgButton.jpg); /* Kill this */

Also, try sizing your links in em units instead of px. Not every visitor
will be using your browser's default font size, and the text will
overflow the space you've provided (in px), and the BG image will get
distorted again.

And: rearrange the rules for your links in the order :link, :visited,
:hover, :active (okay, I know you don't specify an :active on this page,
but if you did...).

Finally, your markup isn't very semantically precide. You use a lot of
DIVs and BRs and it's all in a table for the layout. Look into revising
your markup and using CSS to style the presentation (like margins
instead of BRs). Lurk in this group, for example.

HTH. GL.

--
John
Possessive "its" has no apostrophe. Even on the Internet.


Reply With Quote
  #3  
Old   
Daniel Jung
 
Posts: n/a

Default Re: font background color - 09-16-2008 , 10:20 AM



John Hosking wrote:
Quote:
rearrange the rules for your links in the order :link, :visited,
:hover, :active
Any other order will break the logic. This causes much trouble. But the
correct order is easily mnemotechnically remembered by

"Las Vegas Hells Angels"

- Daniel


Reply With Quote
  #4  
Old   
John Hosking
 
Posts: n/a

Default Re: font background color - 09-16-2008 , 01:13 PM



Daniel Jung wrote:
Quote:
John Hosking wrote:
rearrange the rules for your links in the order :link, :visited,
:hover, :active

Any other order will break the logic. This causes much trouble. But the
correct order is easily mnemotechnically remembered by

"Las Vegas Hells Angels"
"Las Vegas Has Animals" :-)


--
John
Or with more focus: "Las Vegas Has Free Animals"


Reply With Quote
  #5  
Old   
Molly Mockford
 
Posts: n/a

Default Re: font background color - 09-16-2008 , 03:25 PM



At 19:13:09 on Tue, 16 Sep 2008, John Hosking
<John (AT) DELETE (DOT) Hosking.name.INVALID> wrote in
<48cfe98d$1_2 (AT) news (DOT) bluewin.ch>:

Quote:
Daniel Jung wrote:
John Hosking wrote:
rearrange the rules for your links in the order :link, :visited,
:hover, :active
Any other order will break the logic. This causes much trouble. But
the correct order is easily mnemotechnically remembered by
"Las Vegas Hells Angels"

"Las Vegas Has Animals" :-)
"Little Virgins Have Arses".
--
Molly Mockford
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety - Benjamin Franklin
(My Reply-To address *is* valid, though may not remain so for ever.)


Reply With Quote
  #6  
Old   
dorayme
 
Posts: n/a

Default Re: font background color - 09-16-2008 , 07:10 PM



In article <57adnT0if57Q6VLVnZ2dnUVZ_ofinZ2d (AT) giganews (DOT) com>,
"krraleigh" <kraleigh (AT) sbcglobal (DOT) net> wrote:

Quote:
I am using a bk image behind my links and for some reason there is a strip
that is sitting over the top and to the side of the image the same color as
the bgcolor of the cell.

Can you take a look at this and tell me what you think might be the problem?
http://www.greaterhouseofprayer.com/about.html
I see no strip in any of my browsers. I do see this sort of thing on
text enlargement:

<http://dorayme.890m.com/alt/justPics/this_will_not_do.png>

And there is much that is badly broken, follow John Hosking's excellent
advice.

But I come for a different reason: I was pleased to see a real live case
of something that has been much discussed, the hitherto mythical case of
naming something with "left" that is on the right!

Your

..navLeft {

etc.

<g>

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.