4 2812
On 2008-03-15, François de Dardel <da*******@noos 14.frwrote:
Here is the page: http://dardel.info/museum/Museum1.html
and here is the CSS (see navigation buttons at bottom of file): http://dardel.info/museum/style3.css
Is there a way to make all nav buttons (at the bottom of the page) the
same width?
Yes, but not without some caveats.
At the moment the list-items are display: inline to make them sit next
to each other the line.
But that means you can't set widths on them (because width doesn't apply
to things that are display: inline).
There are three other ways to make things line up next to each other
like that:
1. Float them
2. Make them display: inline-block
3. Use a table.
You can set widths on floats, inline-blocks or table cells.
But you can't centre floats, and inline-block doesn't work in Firefox
until version 3.
So that leaves a table, which won't make you any friends, but then you
seem to have already used tables quite a bit anyway so probably don't
care.
Option 4 is do nothing-- I think the buttons look fine the way they are
with different widths.
On 2008-03-15 17:34:21 +0100, Ben C <sp******@spam. eggssaid:
On 2008-03-15, François de Dardel <da*******@noos 14.frwrote:
>Here is the page: http://dardel.info/museum/Museum1.html
and here is the CSS (see navigation buttons at bottom of file): http://dardel.info/museum/style3.css
Is there a way to make all nav buttons (at the bottom of the page) the same width?
Yes, but not without some caveats.
At the moment the list-items are display: inline to make them sit next
to each other the line.
But that means you can't set widths on them (because width doesn't apply
to things that are display: inline).
There are three other ways to make things line up next to each other
like that:
1. Float them
2. Make them display: inline-block
3. Use a table.
You can set widths on floats, inline-blocks or table cells.
But you can't centre floats, and inline-block doesn't work in Firefox
until version 3.
So that leaves a table, which won't make you any friends, but then you
seem to have already used tables quite a bit anyway so probably don't
care.
Option 4 is do nothing-- I think the buttons look fine the way they are
with different widths.
Thank you Ben for your precise and informative reply. I will take option 4.
-- http://dardel.info/
Remove both fourteens in your direct replies
Enlever les deux quatorze pour m'écrire
François de Dardel wrote:
On 2008-03-15 17:34:21 +0100, Ben C <sp******@spam. eggssaid:
>Option 4 is do nothing-- I think the buttons look fine the way they are with different widths.
Thank you Ben for your precise and informative reply. I will take option 4.
Also the easiest to implement!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
In article <sl************ *********@bowse r.marioworld>,
Ben C <sp******@spam. eggswrote:
On 2008-03-15, François de Dardel <da*******@noos 14.frwrote:
Here is the page: http://dardel.info/museum/Museum1.html
and here is the CSS (see navigation buttons at bottom of file): http://dardel.info/museum/style3.css
Is there a way to make all nav buttons (at the bottom of the page) the
same width?
Yes, but not without some caveats.
At the moment the list-items are display: inline to make them sit next
to each other the line.
But that means you can't set widths on them (because width doesn't apply
to things that are display: inline).
There are three other ways to make things line up next to each other
like that:
1. Float them
2. Make them display: inline-block
3. Use a table.
You can set widths on floats, inline-blocks or table cells.
But you can't centre floats, and inline-block doesn't work in Firefox
until version 3.
True. Not that this is useful here (too many caveats), but you
can centre the ul:
<http://netweaver.com.a u/alt/centred_floatLi st.html>
So that leaves a table, which won't make you any friends, but then you
seem to have already used tables quite a bit anyway so probably don't
care.
Option 4 is do nothing-- I think the buttons look fine the way they are
with different widths.
Indeed, and what is more, they look better this way and save
space.
--
dorayme This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ansgar Hein |
last post by:
I have been playing around with several different versions for a
horizontal menu, but I haven't been able to build a horizontal
navigation based on the vertical one featured on www.alistapart.com in
the article "taming lists".
However I have managed to build a horizontal navigation but it has a
slight hitch in Mozilla and Opera, but it's fine in Internet Explorer.
It is a strange occurrance of a 4 - 5 Pixel bar in grey (which is the...
|
by: addled |
last post by:
Hi there, after reading posts here for a few months, I've built the
courage to see if someone can see where I"m going wrong in the webpage
I've been working on.
In particular the horizontal nav bar accross the top of the page.
viewd here http://foundations.port5.com/currprojects/babylon.html
I am running win XP and have tested in both Avant (MSIE) and Opera
7.23
the result is a different problem in each.
|
by: Bryan |
last post by:
I've been trying to figure out how to do this for the past 2 days and
am finally tossing in the towel. No matter what I do, I just can't
seem to get it to work and haven't been able to find any examples of
how to do it in a more CSS-oriented way. Most of the hierarchical
examples are for vertical navigation menus.
Basically, I'm trying to achieve the same effect as on
anthropologie.com (that's the only one that I can think of...
|
by: Dan V. |
last post by:
Why is there a large space before the background image (horizontal orange
line under top NAV horizontal CSS list buttons) in Internet Expolorer 6
only?
http://www.officeactivate.com/fish
Thanks,
|
by: ciwstudy |
last post by:
I'm having problems getting the height to compress for a horizontal
list in IE (styled with CSS). It works fine in other browsers.
Does anyone know a way to fix this?
http://www.uky.edu/Home/Web/newnavbar/
| |
by: pixelwiz |
last post by:
Hi,
I am a designer working with an external .NET programmer. We are
trying to figure out the best way to implement at tab style horizontal
menu similar to
http://www.telerik.com/r.a.d.controls/Menu/Examples/Design/Robotic/DefaultCS.aspx
and http://www.sportsline.com/
We are not sure what part would have to be done in CSS, what part would
be done in .NET how do we integrate? Is there a way to use graphics
|
by: Verona Busch |
last post by:
Hi everybody,
I am very happy to find this group. I am searching for a solution to
make a horizontal list menu with submenu on hover.
I found a lot of examples for horizontal lists which open vertical lists
on :hover i.e. http://phoenity.com/newtedge/horizontal_nav/
But what I am looking for is a horizontal list that opens another
horizontal list and both need to be right-floated.
|
by: Paul |
last post by:
Code is below. Works in Firefox but not IE. I understand there is a box
issue with IE but I am having problems fixing this.
Many thanks for any help!
#navigation {
float: left;
width: 125px;
padding: 0;
}
|
by: nitinpatel1117 |
last post by:
i am using an unordered list to display my horizontal navigation.
i am using something link
<ul>
<li>link 1</li>
<li>link 2</li>
</ul>
|
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:
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |