not sure what i'm doing developing on xmas... but i guess we all have
our own demons! -lol-
i'm using the following css to style my horizontal menu...
/* STYLE HORIZONTAL MENU */
#hmenu ul
{
list-style: none;
padding: 0;
margin: 0;
}
#hmenu li
{
float: left;
margin: 0 0.15em;
padding: 0;
text-align: center
}
#hmenu li a
{
background: url(../images/hmenu.gif) #fff bottom left repeat-x;
height: 1.3em;
line-height: 1.3em;
float: left;
width: 7.5em;
display: block;
border: 0.1em solid #dcdce9;
color: #0d2474;
text-decoration: none;
text-align: center;
}
/* Commented backslash hack hides rule from IE5-Mac \*/
#hmenu li a
{
float: none
}
/* End IE5-Mac hack */
/* KEEP HMENU FROM WRAPPING */
#hmenu
{
width: 50em;
}
on the php side, i have a <ul> in a <div="hmenu">.
everything works great except i want the ends of this list to have a
different background b/c they aren't links - they portray other
information (ie, contact phone number and current page name).
i've tried setting .blueback in my css document and putting
class="blueback" in the <a> and in the <li> with no luck.
i tried a.blueback and li.blueback.
no luck.
does anyone have any ideas? the css will reveal i'm using an image as
my main background and it continues to display no matter what i try.
tia...
....and merry christmas! :-) 11 6208
On 25 Dec 2004 19:42:11 -0800, skeeterbug <js******@san.rr.com> wrote: not sure what i'm doing developing on xmas... but i guess we all have our own demons! -lol-
i'm using the following css to style my horizontal menu...
Happy ho-ho to you. What I want for Xmas is a URL to an examplr of your
problem. That will really speed up the process.
Jingle jingle.
neal, the code isn't up b/c it has fallen and can't get up! ;-)
happy new year!!!
here is my html:
<div id="hmenu">
<ul>
<li><a class="white"><span><?php print $currentpage ?></span></a></li>
<li><a href="elistings.php">Email Listings</a></li>
<li><a href="listings.php">Online Listings</a></li>
<li><a href="mortgage.php">Mortgage Area</a></li>
<li><a href="drawing.php" class="red"><span>Enter To
Win!</span></a></li>
<li class="blueback"><a
class="white"><span>858-733-2886</span></a></li>
</ul>
</div>
here is my css:
li.blueback {background-color: #0d2474;
}
a.red span { color: #f00;
text-decoration: none;
}
a.white span { color: white;
text-decoration: none;
/* STYLE HORIZONTAL MENU */
#hmenu ul
{
list-style: none;
padding: 0;
margin: 0;
}
#hmenu li
{
float: left;
margin: 0 0.15em;
padding: 0;
text-align: center
}
#hmenu li a
{
background: url(../images/hmenu.gif) #fff bottom left repeat-x;
height: 1.3em;
line-height: 1.3em;
float: left;
width: 7.5em;
display: block;
border: 0.1em solid #dcdce9;
color: #0d2474;
text-decoration: none;
text-align: center;
}
On 25 Dec 2004 23:20:05 -0800, Skeets <sk*********@yahoo.com> wrote: neal, the code isn't up b/c it has fallen and can't get up! ;-)
happy new year!!!
here is my html:
Oh jeez, I'd be doing a disservice by wading through this. It simply won't
do.
Let me point out ways to improve, please.
<a class="white"><span><?php print $currentpage ?></span></a>
Why add a span? Why not style the a instead? The span unnecessarily
complicates your markup. And your CSS as a result. Please fix that up.
Geocities has free webspace. use that if you have access to nothing
better. Really, the ability to click and see is going to yield you more
responses than your current mess.
here is my css:
li.blueback {background-color: #0d2474;
}
If you define background-color, always also define color.
a.red span { color: #f00; text-decoration: none; }
a.white span { color: white; text-decoration: none;
Close with }? Did you? That's why a URL is preferred...
And text-decoration: none? How do I know there's a link?
Please don't post more code. Get something online, post the URL. Please.
fair enough. i will set out to get it online tomorrow after i get some
sleep and get the links up to speed so that my site is consistently
brkern and not jsuper jacked up. i used span b/c i was having a
problem styling those <li>s. i agree it doesn't make much sense if i
can figure out the styling.
good point about the links. usability is on my list to improve.
i appreciate the interest in helping - thank you.
Neal wrote: On 25 Dec 2004 23:20:05 -0800, Skeets <sk*********@yahoo.com> wrote:
neal, the code isn't up b/c it has fallen and can't get up! ;-)
happy new year!!!
here is my html: Oh jeez, I'd be doing a disservice by wading through this. It simply
won't do.
Let me point out ways to improve, please.
<a class="white"><span><?php print $currentpage ?></span></a> Why add a span? Why not style the a instead? The span unnecessarily complicates your markup. And your CSS as a result. Please fix that
up. Geocities has free webspace. use that if you have access to nothing better. Really, the ability to click and see is going to yield you
more responses than your current mess.
here is my css:
li.blueback {background-color: #0d2474;
}
If you define background-color, always also define color.
a.red span { color: #f00; text-decoration: none; }
a.white span { color: white; text-decoration: none;
Close with }? Did you? That's why a URL is preferred...
And text-decoration: none? How do I know there's a link?
Please don't post more code. Get something online, post the URL.
Please.
here's a link... http://www.geocities.com/operationsengineer1/
i want the two side menu locations to have a solid dark blue background
and white text since they aren't going to links - they will display
information (current page and phone number).
i tried creating class
..blueback {background-color: blue;}
and call that class in <a class="blueback"> and <li class="blueback">
for the appropriate list items. it didn't do what i hoped it would.
i think this may have something to do with the id i'm calling.
any help would be appreciated.
skeeterbug wrote: not sure what i'm doing developing on xmas... but i guess we all
have our own demons! -lol-
i'm using the following css to style my horizontal menu...
/* STYLE HORIZONTAL MENU */
#hmenu ul { list-style: none; padding: 0; margin: 0; }
#hmenu li { float: left; margin: 0 0.15em; padding: 0; text-align: center }
#hmenu li a { background: url(../images/hmenu.gif) #fff bottom left repeat-x; height: 1.3em; line-height: 1.3em; float: left; width: 7.5em; display: block; border: 0.1em solid #dcdce9; color: #0d2474; text-decoration: none; text-align: center; }
/* Commented backslash hack hides rule from IE5-Mac \*/ #hmenu li a { float: none } /* End IE5-Mac hack */
/* KEEP HMENU FROM WRAPPING */
#hmenu { width: 50em; }
on the php side, i have a <ul> in a <div="hmenu">.
everything works great except i want the ends of this list to have a different background b/c they aren't links - they portray other information (ie, contact phone number and current page name).
i've tried setting .blueback in my css document and putting class="blueback" in the <a> and in the <li> with no luck.
i tried a.blueback and li.blueback.
no luck.
does anyone have any ideas? the css will reveal i'm using an image
as my main background and it continues to display no matter what i try. tia...
...and merry christmas! :-)
skeeterbug wrote: here's a link...
http://www.geocities.com/operationsengineer1/
Change
li a .blueback {background: blue bottom left repeat-x;}
to
#hmenu li.blueback, #hmenu a.blueback {color: white; background: blue
bottom left repeat-x;}
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jim Moe wrote: skeeterbug wrote:
here's a link...
http://www.geocities.com/operationsengineer1/ Change li a .blueback {background: blue bottom left repeat-x;} to #hmenu li.blueback, #hmenu a.blueback {color: white; background: blue bottom left repeat-x;}
Actually, this is all that is needed:
#hmenu a.blueback {...
or:
#hmenu ul li a.blueback {...
whereas this contributes nothing that I can see:
#hmenu li.blueback {...
Perhaps someone can explain the /reason/ as to why these don't work:
a.blueback {...
li a.blueback {...
ul li a.blueback {...
--
Gus
Gus Richter wrote: skeeterbug wrote:
http://www.geocities.com/operationsengineer1/
Actually, this is all that is needed: #hmenu a.blueback {...
Perhaps someone can explain the /reason/ as to why these don't work: a.blueback {... li a.blueback {... ul li a.blueback {...
#hmenu has higher specificity than the more generic selectors, so the
existing rule
#hmenu li a {background: url(hmenu.gif) #fff bottom left repeat-x;...}
takes precedence. As an override, I would suggest
#hmenu li a.blueback {...}
and put it right after the first rule, mostly because it may make it
easier to read/follow, and subsequently easier to maintain.
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
kchayka wrote: Perhaps someone can explain the /reason/ as to why these don't work: a.blueback {... li a.blueback {... ul li a.blueback {...
#hmenu has higher specificity than the more generic selectors, so the existing rule
#hmenu li a {background: url(hmenu.gif) #fff bottom left repeat-x;...}
takes precedence. As an override, I would suggest #hmenu li a.blueback {...}
and put it right after the first rule, mostly because it may make it easier to read/follow, and subsequently easier to maintain.
Ah yes, thank you very much.
--
Gus
thanks for all the help everyone.
kchayka wrote: Gus Richter wrote: skeeterbug wrote:
http://www.geocities.com/operationsengineer1/ Actually, this is all that is needed: #hmenu a.blueback {...
Perhaps someone can explain the /reason/ as to why these don't
work: a.blueback {... li a.blueback {... ul li a.blueback {...
#hmenu has higher specificity than the more generic selectors, so the existing rule
#hmenu li a {background: url(hmenu.gif) #fff bottom left
repeat-x;...} takes precedence. As an override, I would suggest #hmenu li a.blueback {...}
and put it right after the first rule, mostly because it may make it easier to read/follow, and subsequently easier to maintain.
-- Reply email address is a bottomless spam bucket. Please reply to the group so everyone can share. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: aznFETISH |
last post by:
I have a list of links that I ue on my page, I alternate background colors
for these links in a table, I usually do it using a DB but this list of link
is manually added into the page so my...
|
by: news |
last post by:
Hi all, How do you implement alternate line colors in ms access datasheet
view
Regards Joe
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system...
|
by: sconeek |
last post by:
Hi all,
I am generating a html based table with multiple rows of data coming
in real time from a postgres DB. The underlying technology is java
based however the front end is html.
now i am...
|
by: Eric Lindsay |
last post by:
I am trying to understand the differences between and uses of
persistent, default and alternate styles. I have read
http://www.w3.org/TR/REC-html40/present/styles.html section 14.3.2 on...
|
by: Amy |
last post by:
I need some help.
I have this table with alternate row colors. Class gray and class
white. I have javascript that do highlight when mouseover row ... and
onclick to select row and highlight it...
|
by: Michael R |
last post by:
Searching the net I've found a simple technique to add row numbers and alternate colors (for the even and the uneven row) to a continuous form.
1st step: Create a textbox, send it to background...
|
by: Charles Law |
last post by:
Ok. I haven't been around for a while, so I hope someone will come to my
rescue. I thought I had done this years ago, but I have scoured my code
snippets and can't find it.
I want my ListView...
|
by: JohnDriver |
last post by:
Hi,
I am happy to say that with your help, I have been performing good in Ajax. Thanks for helping me to start with. I have a small problem now. I am pulling records from database and passing...
|
by: Wayne |
last post by:
Has anyone found the "Alternate Background Color" property in Access
2007 forms to be buggy? As I scroll a continuous form that is using
an alternate background color for every second record, the...
|
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...
|
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...
|
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |