473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Displaying Lists Inline with Image Seperators?

I am presently trying to display a list of items INLINE using an image as a
seperator..... and having difficulties....

See below for 3 seperate sets of html and css files. Each set does something
different. Ideally I would like the result of Menu 1 but instead of having
the pipe effect border on the right of each choice I would like to replace
that with an image of some sort.

Any help much appreciated.

------

Menu 1 (this has a pipe effect seperator that is controlled by a border
property) - This is how I would like to have it display but with an image as
a seperator

[html]
<ul class="menu1">
<li class="first">Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>

[css]
ul.menu1 {
margin-left: 0px;
display: inline;
}

ul.menu1 li {
padding-right:3px;
padding-left:5px;
border-left: 1px solid #666666;
display: inline;
}
ul.menu1 li.first{
border-left: none;
display: inline;
}

-------------------

Menu 2 (this displays the list with images but they are not INLINE)

[html]
<ul class="menu2">
<li class="first">Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>

[css]
ul.menu2 {
margin-left: 0px;
}

ul.menu2 li {
padding-right:3px;
padding-left:5px;
list-style-type: none;
list-style-image: url(bullet.gif);
list-style-position: inside;

}
ul.menu2 li.first {
list-style-image: none;
}
-------------------
Menu 3 (this displays the list INLINE but does not display the image)

[html]
<ul class="menu3">
<li class="first">Option 1</li>
<li>Option 2</li>
<li>Option 3</li>
</ul>
[css]
ul.menu3 {
margin-left: 0px;
}

ul.menu3 li {
padding-right:3px;
padding-left:5px;
list-style-type: none;
list-style-image: url(bullet.gif);
list-style-position: inside;
display: inline;
}
ul.menu3 li.first {
list-style-image: none;
}
ul.menu2 li.first {
list-style-image: none;
}
-------------------

Desigan Chinniah
ch******@cyberdees.net
Jul 20 '05 #1
1 6071
Desigan Chinniah wrote:
I am presently trying to display a list of items INLINE using an image as
a seperator..... and having difficulties....

[snip]

Use a background image and sufficient padding on one of the sides.
--
Jim Dabell

Jul 20 '05 #2

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

Similar topics

14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
46
by: DJ WIce | last post by:
Hi all, I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html It works nice in MSIE, but on Netscape (and probable...
14
by: Filippo Giarratano | last post by:
Hi -- I'm trying to figure out how to make a photo thumbnail gallery page using CSS and no tables that (1) has a caption below each image and (2) is centered -- so that as browser width changes the...
2
by: George | last post by:
My program is supposed to draw lines given from certain vertices that are given to me. the colors from the lines are also defined. It should display on a black screen. I am not sure how to do this...
20
by: Peter E. Granger | last post by:
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it...
6
by: mno | last post by:
Hi all, I have a problem that I've been stuck with for the last couple of days that's driving me a bit more than crazy at this point. Sorry if this message is not very clear. I have a design...
3
by: James | last post by:
I'm having trouble trying to put 3 definition lists into a unordered list which has been styled to appear horizontally. My goal is to have the 3 definition lists appear side by side and fill the...
48
by: coool | last post by:
Hi I'm now trying to have a dependent lists in a form my form is a query based form i.e. I fill my MySQL query from this form I have around 30 fields/columns
5
by: Roy Smith | last post by:
Be kind to me, I'm a CSS newbie... I've been playing with drupal, building a web site (hyc-test.org). I started with the "sky" theme, but didn't like the way it rendered list items in menus. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
tracyyun
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...
0
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,...
0
isladogs
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...

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.