473,657 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

List without bullets

I have a page at http://www.develop.check.com.au/hols/ where I'm
trying to put a navigation strip on the left of the page. Try as I
may, I can't get rid of the bullets and move the list over to the
left.

The HTML is:
<ul>
<li><a href="area.html ?a=ah">Alexandr a Headland</a></li>
<li><a href="area.html ?a=ca">Caloundr a</a></li>
<SNIP>
</ul>

.... contained within a <DIV> to position it on the page.

The CSS is:

ul li a {
display: block;
list-style: none;
text-decoration: none;
width: 100%;
margin: 0;
padding-left: 4px;
color: #ffffff;
font-weight: bold;
background-color: #87714a;
border: 1px #666666 outset;
font-size: 11px;
}

ul li a:hover {
color: #4ba513;
}

TIA for a solution to this problem.

Jul 21 '05 #1
5 67670
Els
Howard Martin wrote:
I have a page at http://www.develop.check.com.au/hols/
where I'm trying to put a navigation strip on the left of
the page. Try as I may, I can't get rid of the bullets and
move the list over to the left.

The HTML is:
<ul>
<li><a href="area.html ?a=ah">Alexandr a Headland</a></li>
<li><a href="area.html ?a=ca">Caloundr a</a></li>
<SNIP>
</ul>

... contained within a <DIV> to position it on the page.

The CSS is:

ul li a {
display: block;
list-style: none;


You set list-style:none to the a element here.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
Howard Martin wrote:
The CSS is:

ul li a {
display: block;
list-style: none;
text-decoration: none;
width: 100%;
margin: 0;
padding-left: 4px;
color: #ffffff;
font-weight: bold;
background-color: #87714a;
border: 1px #666666 outset;
font-size: 11px;
}
ul li a:hover {
color: #4ba513;
}


This only defines the style for the <a> element inside the <li> element
inside the <ul> element.

Try this:

ul, li, ul li a {
display: block;
list-style: none;
text-decoration: none;
width: 100%;
margin: 0;
padding-left: 4px;
color: #ffffff;
font-weight: bold;
background-color: #87714a;
border: 1px #666666 outset;
font-size: 11px;
}

ul li a:hover { color: #4ba513;
}
Jul 21 '05 #3
Els
Ståle Sæbøe wrote:
Howard Martin wrote:
The CSS is:

ul li a {

[snip]
This only defines the style for the <a> element inside the
<li> element inside the <ul> element.

Try this:

ul, li, ul li a {
display: block;
list-style: none;
text-decoration: none;
width: 100%;
margin: 0;
padding-left: 4px;
color: #ffffff;
font-weight: bold;
background-color: #87714a;
border: 1px #666666 outset;
font-size: 11px;
}


So you mean really set a padding-left of 4px for the ul, the
li, and the a? That's 12px padding-left all together. ;-)
Plus I think something will go wrong visually by setting all
those to 100% width...

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: David Bowie - Space Oddity
Jul 21 '05 #4
Els wrote:
... Plus I think something will go wrong visually by setting all
those to 100% width...

Probably, but I did not feel like doing a CSS Tutorial writeup right
now ;)

All right Howard, you really should check out one of the many CSS
tutorials out there. Your question reveals that you are even more newbie
than me :D
Jul 21 '05 #5
Howard Martin wrote:
I have a page at http://www.develop.check.com.au/hols/ where I'm
trying to put a navigation strip on the left of the page. Try as I
may, I can't get rid of the bullets and move the list over to the
left.

See if this helps you out:
http://css.maxdesign.com.au/listutorial/index.htm

The HTML is:
<ul>
<li><a href="area.html ?a=ah">Alexandr a Headland</a></li>
<li><a href="area.html ?a=ca">Caloundr a</a></li>
<SNIP>
</ul>

... contained within a <DIV> to position it on the page.

The CSS is:

ul li a {
display: block;
list-style: none;
text-decoration: none;
width: 100%;
margin: 0;
padding-left: 4px;
color: #ffffff;
font-weight: bold;
background-color: #87714a;
border: 1px #666666 outset;
font-size: 11px;
}

ul li a:hover {
color: #4ba513;
}

TIA for a solution to this problem.

--

*** Remove the DELETE from my address to reply ***

=============== =============== =============== =========
Kevin Scholl http://www.ksscholl.com/
ks*****@comcast .DELETE.net
------------------------------------------------------
Information Architecture, Web Design and Development
------------------------------------------------------
We are the music makers, and we are the dreamers of
the dreams...
=============== =============== =============== =========
Jul 21 '05 #6

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

Similar topics

12
7006
by: Steven Bethard | last post by:
So I need to do something like: for i in range(len(l)): for j in range(i+1, len(l)): # do something with (l, l) where I get all pairs of items in a list (where I'm thinking of pairs as sets, not tuples, so order doesn't matter). There isn't really anything wrong with the solution here, but since Python's for-each construction is so nice, I usually try to avoid range(len(..)) type
2
2018
by: VK | last post by:
A while ago there was a discussion how to implement a select list that would call a function right upon new selection is being made w/o clicking any additional buttons: <http://groups-beta.google.com/group/comp.lang.javascript/browse_frm/thread/aa4a8da635e42592/ba2c264d6a9b3558?q=drag+group:comp.lang.javascript+author:VK&rnum=2&hl=en#ba2c264d6a9b3558> The main issue was to overcome IE's accessibility bug: if user scrolls the list using...
3
1544
by: Gregor Horvath | last post by:
Hi, given the dynamic nature of python I assume that there is an elegant solution for my problem, but I did not manage to find it. I have a file that contains for example on line: when I read the file
4
2309
by: TaeHo Yoo | last post by:
I have two dropdown list(ie State and Region) that are populated with data from database. I want to repopulate the second dropdown list(Region) according to what state user has selected without posting back to the server. How do I implement this? Thanks a lot in advance.
0
2805
by: DarrenWeber | last post by:
# Copyright (C) 2007 Darren Lee Weber # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY...
10
10497
by: Aditya | last post by:
Hi All, I would like to know how it is possible to insert a node in a linked list without using a temp_pointer. If the element is the first element then there is no problem but if it is in between then what is the best solution.
7
1736
by: jessy | last post by:
i have a JS function which adds items to a list when the user clicks on a button ADD ITEM now i need to get all the items he added in the list without selecting them !! is that possible ? i need to insert those items in the DB any ideas ?
0
8394
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, 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...
0
8306
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,...
0
8825
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, 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...
0
8732
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 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...
1
8503
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,...
0
7327
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, 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...
0
5632
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();...
0
4152
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...
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.