I've been trying to create a new navigation system for my site, and I got everything figured out except for one thing. Here is the CSS code I'm using right now: - body {
-
font: normal 10px Verdana, Arial, Helvetica, sans-serif;
-
color: #000000;
-
background: #FFFFFF;
-
height: auto;
-
width: auto;
-
margin: 0px;
-
padding: 0px;
-
}
-
#wrapper {
-
text-align: left;
-
width: 100%;
-
margin-right: auto;
-
margin-left: auto;
-
}
-
-
a { color: #0000FF; text-decoration: none; }
-
a:hover { color: #000000; }
-
a.redbar { color: #FFFF00; text-decoration: none; }
-
a.redbar:hover { color: #000000; }
-
-
table {
-
border-width: 0px;
-
border-style: none;
-
margin: 0px;
-
padding: 0px;
-
font: 10px Verdana, Arial, Helvetica, sans-serif;
-
color: #000000;
-
background-color: #FFFFFF;
-
}
-
-
.loading {
-
font-size: 24px;
-
font-style: italic;
-
font-weight: bold;
-
color: #FFFFFF;
-
text-align: right;
-
-
}
-
-
.bars {
-
font-size: 10px;
-
font-style: italic;
-
font-weight: bold;
-
color: #FFFFFF;
-
-
-
}
-
-
.bars, .loading {
-
background-color: #0033CC;
-
-
}
-
-
-
#navbar {
-
font: bold 12px Geneva, Arial, Helvetica, sans-serif;
-
text-transform: uppercase;
-
text-align: center;
-
border-top: 1px solid #000000;
-
border-bottom: 1px solid #333333;
-
clear: both;
-
margin-bottom: 10px;
-
}
-
#navbar ul {
-
margin: 0px;
-
padding: 0px;
-
}
-
#navbar li {
-
list-style: none;
-
display: inline;
-
}
-
#navbar a {
-
background: url(../images/blackslant_15x15.gif);
-
}
and here is my unordered list that I am using that is using the #navbar property: - <div id="navbar">
-
<ul>
-
<li> <a href="news/index.html">News</a></li>
-
<li> <a href="fanfiction/index.html">Fanfiction</a></li>
-
<li> <a href="thoughts/index.html">Thoughts</a></li>
-
<li> <a href="links/index.html">Links</a></li>
-
<li> <a href="contact/index.html">Contact</a></li>
-
</ul>
-
</div>
The problem is when I actually add the background I want to use for this navigation, the background doesn't come up. I try to do different things to cause it to come up, but nothing shows up AT ALL in Dreamweaver 8. I've had various different things happen with Firefox and IE, with the background overflowing out of the navigation bar, it not being centered right, whatever they could've done to screw it up, they did. Now, the float:block property will get it to show, but since I need this navigation centered, I can't use float (the background itself is a little diagonal black line), and since I only need this BG in the actual list items, I can't tell it to use the background in the entire UL (there is supposed to be only one black line going in between each link). Be advised that I didn't use any padding because in order to start padding the background, I need to have it know that there actually IS a background being used.
I have tried to do everything imaginable in order to get this thing to look right and to actually get Dreamweaver and/or the page, css, whatever it is that is reading what, to reconize that I'm actually telling it to use a background in the code, in the way that I was wanting it. But I think I have hit my wits end in this, because everything that I have tried has done absolutly nothing with getting this problem fixed. I need help, PLEASE!!
2 2975
I won't pretend to have this post as a way to bump up this topic, because I REALLY NEED HELP ON THIS!!! I'm STILL trying to do ANYTHING I possibly can, and no one is answering (or caring?).
What am I doing wrong? PLEASE HELP!!
Hi darkpowrjd
I just think that maybe no-one is too sure exactly what's up! Your CSS seems fine so I can't see why your background shouldn't be showing up! As it is above, you should have your menu items with ///////////////// behind them.
You say 'there is supposed to be only one black line going in between each link' so I'm presuming you mean you want your menu like this: Item 1 / Item 2 / Item 3 / Item 4
If so, then change your CSS from this: - #navbar li {
-
list-style: none;
-
display: inline;
-
}
-
#navbar a {
-
background: url(../images/blackslant_15x15.gif);
-
}
to this: - #navbar li {
-
list-style: none;
-
display: inline;
-
padding-right: 15px;
-
background: url(../images/blackslant_15x15.gif) top right no-repeat;
-
}
Hopefully I'm reading you right - if so then that should give you the result you want.
Jay
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: John Pote |
last post by:
I have a menu bar in a top level window as follows
menuBar = Menu(rootWin)
menuBar.add_command( label='Quit', command=rootWin.quit)
configMenu = Menu(menuBar, tearoff=0)
configMenu.add_command(label='Left Device Raw', command=setLeftRaw)
configMenu.add_command(label='Right Device Raw', command=setRightRaw)
etc
|
by: JesusFreak |
last post by:
From: us_traveller@yahoo.com (JesusFreak)
Newsgroups: microsoft.public.scripting.jscript
Subject: toolbar script problem
NNTP-Posting-Host: 192.92.126.136
Recently, I downloaded the following beautiful script
"http://javascript.internet.com/navigation/toolbar-menu.html". It
works like a charm. I made my webpage in frames, where the nav-frame
shows the menubar, so whenever I click a link in the menubar, it opens
in the frame below. But...
|
by: ajay |
last post by:
I have following code for a slide menu but i twiked it to work for a
single level menu. Open it in a Browser to get a clear picture.
I have 2 Qs
1) How to make first entry as non-link. i.e i want to make first text
as Table Heading/menu category. For examle in the given menu i want to
make a heading as "Comp. Languages" which won't be a link.
2) The position of this menu is absolute to the page. I want to make
it absolute to the Table...
|
by: Simon Birch |
last post by:
Hi, I hope someone can help with this, it is driving me bonkers. After
reading the Suckerfish Dropdown article on A List Apart, I decided to try
and create a side menu based on the code I'd seen. Note that this is an
experiment and I'm only trying to get it to work in Firebird 0.7 at the
moment. Once it is working in Firebird, I'll look at adding any IE
workarounds, starting with those in the Dropdown article.
Here is the code I've got...
|
by: Yuk Cheng |
last post by:
<<<start index.htm>>>
<html>
<head>
<script>
function perform(action){
}
</script>
</head>
| |
by: proplady |
last post by:
I've had this menu for some time, and periodically make changes.
I've made some changes now (just some menu items), and the menu will not show up on my webpages.
I know it's something simple, but I just can't see it. Can anyone help?
var NoOffFirstLineMenus=6; // Number of first level items
var LowBgColor='white'; // Background color when mouse is not over
var LowSubBgColor='99CCFF'; // Background color when mouse is not over...
|
by: daydream |
last post by:
yeah i need some help(such a common line) ,i have a menu and each link has its own div respectively and yeah obviously when u click the link the div shows, the problem is i would like each div to show no matter how many times you click the link for it and if you click on another one and when u go back to the original , the div would still show. at the moment i have partially done that, i click on item a ,that shows then when i click item b that...
|
by: milestogofromhere |
last post by:
It is late so this is probably something really obvious but I am not seeing it. Can someone please help?
Here is the page in question:
html - http://www.itsyourplate.com/index2.php
css - http://www.itsyourplate.com/thin.css
As you can see from the file the menu is showing up vertically not horizontally. I copied the code directly from another site I have done and changed the bullets (I didn't want any) and the colors but I must have...
|
by: dharmbhav |
last post by:
Hello all,
I am trying to develop a roll-over menu effect on a page. It works fine with all other browsers except IE6. Can some one please help me?
HTML:
<div class="menu-item-wrap">
<a href="#" class="menu-item-text">
Menu1
</a>
|
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: 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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
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: 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
| |
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...
| |