I'm developing a restaurant's website. http://www.tsmchughs.com/
My template has div#content then div#navigation, which contains an
unordered list of links. I have positioned div#navigation on the left
side using the following:
BODY {
margin-left: 9.6em;
}
#navigation {
position: absolute;
width: 9em;
height: 100%;
top: 0;
bottom: 0;
left: 0;
}
I'd like to add a graphic to div#navigation, a 140px wide gif file.
Have I painted myself into a corner? How can I place the image in
#navigation and be sure that there is adequate space for both the
image and the text links?
--
Brian
follow the directions in my address to email me 12 2317
Brian <us*****@juliet remblay.com.inv alid-remove-this-part> wrote in message news:<jkwsb.134 066$275.396634@ attbi_s53>... I'd like to add a graphic to div#navigation, a 140px wide gif file. Have I painted myself into a corner? How can I place the image in #navigation and be sure that there is adequate space for both the image and the text links?
You can just do:
<div id="navigation" >
<img src="foo">
<ul> ...Text links... </ul>
</div>
You could get into trouble if 9em < 140 px, which depends on the user's settings.
Garmt.
Garmt de Vries wrote: Brian <us*****@juliet remblay.com.inv alid-remove-this-part> wrote in message news:<jkwsb.134 066$275.396634@ attbi_s53>...
I'd like to add a graphic to div#navigation, a 140px wide gif file. Have I painted myself into a corner? How can I place the image in #navigation and be sure that there is adequate space for both the image and the text links?
You can just do:
<div id="navigation" >
<img src="foo">
<ul> ...Text links... </ul>
</div>
You could get into trouble if 9em < 140 px, which depends on the user's settings.
One could try setting 'max-width: 9em' for the image which wouldn't
work everywhere (i.e. IE) but after all we rely on that in most of
the cases 9em would be greater than 140px.
--
Stanimir
Garmt de Vries wrote: Brian <us*****@juliet remblay.com.inv alid-remove-this-part> wrote in message news:<jkwsb.134 066$275.396634@ attbi_s53>...
I'd like to add a graphic to div#navigation, a 140px wide gif file. Have I painted myself into a corner? How can I place the image in #navigation and be sure that there is adequate space for both the image and the text links?
You can just do:
<div id="navigation" >
<img src="foo">
<ul> ...Text links... </ul>
</div>
That's what I have done. But the question is whether I can set an
appropriate width.
You could get into trouble if 9em < 140 px, which depends on the user's settings.
Exactly. And it seems dangerous simply to hope that 9em < 140px.
--
Brian
follow the directions in my address to email me
On Wed, 12 Nov 2003 20:01:19 GMT, Brian
<us*****@juliet remblay.com.inv alid-remove-this-part> wrote: My template has div#content then div#navigation, which contains an unordered list of links. I have positioned div#navigation on the left side using the following:
BODY { margin-left: 9.6em; }
#navigation { position: absolute; width: 9em; height: 100%; top: 0; bottom: 0; left: 0; }
I'd like to add a graphic to div#navigation, a 140px wide gif file. Have I painted myself into a corner? How can I place the image in #navigation and be sure that there is adequate space for both the image and the text links?
Maybe you could float the navigation bar left rather than using absolute
positioning/margins, set the width in pixels and min-width in ems? That
should work for everyone except IE users who have set a larger font size
(and according to certain users of fixed pixel fonts, almost no IE users
know how to adjust their font size anyway ...)
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
In article Brian wrote: I'm developing a restaurant's website.
http://www.tsmchughs.com/
My template has div#content then div#navigation, which contains an unordered list of links. I have positioned div#navigation on the left side using the following:
[snip]
I'd like to add a graphic to div#navigation, a 140px wide gif file.
On top, I assume. What height? If that it won't be taller than heading
on right, you could replace 10000000em with image height and still avoid
strange look and it would be less likely that it would broke something.
Have I painted myself into a corner?
Seems to. I can't think any neat and clean solution.
How can I place the image in #navigation and be sure that there is adequate space for both the image and the text links?
Kludge:
#navigation {min-width:140px}
<BODY ID="tsmchugh" style="margin-left:0;">
<div style="float:le ft;width:140px; margin-bottom:10000000 em</div>
<DIV ID="content" style="margin-left:9em;">
...
<DIV CLASS="copyrigh t" style="clear:no ne;">
I do not know if some browser displays white space created by too big
margin, it might cause long empty space. Partially tested on O7.22
I don't know if it is possible to get IE strech right bar to accommodate
image.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
Stephen Poley wrote: On Wed, 12 Nov 2003 20:01:19 GMT, Brian wrote:
My template has div#content then div#navigation, which contains an unordered list of links. I have positioned div#navigation on the left
I'd like to add a graphic to div#navigation, a 140px wide gif file. How can I place the image in #navigation and be sure that there is adequate space for both the image and the text links? Maybe you could float the navigation bar left rather than using absolute positioning/margins,
<sigh> Yeah, that's looking like my only option. Well, that or not
putting the logo together with the navigation, which seems like the
most logical place. To change it to float, though, I need to move the
navigation to the top of each html file.
I wonder if it's feasible to allow authors to suggest widths as
equations (width: 100% - 9em). Boy, that'd be nice. It'd also be
*years* down the road, if it is even possible.
set the width in pixels and min-width in ems? That should work for everyone except IE users who have set a larger font size (and according to certain users of fixed pixel fonts, almost no IE users know how to adjust their font size anyway ...)
They do present some odd arguments. Regardless of adjusting their
font size, is it not possible for very different initial settings,
dependent on e.g. resolution?
--
Brian
follow the directions in my address to email me
In article Lauri Raittila wrote: #navigation {min-width:140px}
I don't know if it is possible to get IE strech right bar to accommodate image.
But of course you can use bacground image that has 140px wide green area.
More elegant code would be putting logo before content and floating it
left instead of dummy div, and then adding it as fixed background image
to positioned sidebar. Or positioning sidebar bottom of logo absolutely
(fixed could not work.)
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
"Brian" <us*****@juliet remblay.com.inv alid-remove-this-part> a écrit
dans le message de news:iZ6tb.1987 28$Tr4.568169@a ttbi_s03... I wonder if it's feasible to allow authors to suggest widths as equations (width: 100% - 9em). Boy, that'd be nice. It'd also be *years* down the road, if it is even possible.
I stongly support this point! I have the problem, that I want to
construct a absolute positioned navigation bar with an em width and px
borders. So, up to now, it seems impossible for me to absolutely
position the content box so that the edges are exactly aligned, because
I'd need sth. like
left: 20em+2px;
--
Andreas
To reply via e-mail, please remove the fruit and the ".invalid" top
level domain from my address.
"Brian" <us*****@juliet remblay.com.inv alid-remove-this-part> schrieb im
Newsbeitrag news:iZ6tb.1987 28$Tr4.568169@a ttbi_s03... I wonder if it's feasible to allow authors to suggest widths as equations (width: 100% - 9em). Boy, that'd be nice. It'd also be *years* down the road, if it is even possible.
You've got the point. It would not only be nice but - in combination with
the W3C box model which makes it impossible to for example use a width of
100% with a padding or a border - it actually would be a must. That's my
problem with standards complying HTML/CSS: If an easy everyday task as
combining a logo with the rest of the page is such a big problem, the
standards seem to be not good enough.
--
Markus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lars G. Svensson |
last post by:
As a regular ciwas reader, I learned that fixed-pixel designs are evil, so
for the newly created site http://www.ddc-deutsch.de (in German, still very
much under construction) I arranged the content (left) and the menu (right)
(ideas stolen from bluerobot.com) using percentage widths (75% content, 25%
menu). This looks nice in Opera 7.11 but in IE 6, content and menu are
overlapping.
When reading the following, please keep in mind, that...
|
by: Alan Clark |
last post by:
Hello Everyone.
I gave up on frames, and now I'm trying to achieve the same navigation
with CSS - which is probably not the best idea. I've hit a strange
snag.
I've positioned a top banner DIV at 2% left and width of 96% absolute.
Underneath, I have three DIV columns, the first at 2% left, width 27%,
the second at 31% left, width 38%, and the third at 71% left, width
|
by: Brian |
last post by:
Shame on me for not testing my site http://www.tsmchughs.com/ in MSIE
at "larger" font size. I just did today, and found an unpleasant
result. The content gets pushed behind the navigation, which has
position: absolute.
There's a second problem which is merely cosmetic. The width of
headings in a secondary navigation are not taking the full width of
the containing block.
Here's a simplified test case, with both problems detailed.
|
by: Steve Sabljak |
last post by:
I seem to having a little trouble getting a table to display correctly
in both msie and firefox. I want to set the table and column widths in
pixels, and have some cell padding too. The table displays correctly
in standards compiance mode in firefox, but not msie, where the
padding is added on to the column widths.
the table size is always correct, but the column widths are not what I
expect them to be.
If I change the column widths to...
|
by: TJ Talluto |
last post by:
<facts>
I have a "month calendar" that always displays exactly 42 days... and
alongside is a vertical box that displays the detail (form fields) of any
particular select event that appears on the calendar, so that the event may
be changed, or a new event may be created.
monthname
X X X X X X X form
X X X X X X X form
X X X X X X X form
| |
by: saxm-un |
last post by:
Hi, I'm just beginning CSS based web development and although I've been
bashing away at it since yesterday, I'm still stuck with positioning
things on pages.
I'm trying to make (in table-speak) two (or possibly more later) rows
each of three columns, with a table width 60% of the width of the
screen with a 10% left hand margin. I've been bashing away at the CSS
for a while now, and I'm almost there (except I can't get the top-edge
of...
|
by: Midsomer |
last post by:
Hi. I have an Access database with a form containing 4 datasheets and I
allow the user to change column widths. On closing the form, a routine
is fired that saves each column width to an INI file.
When the form is opened, the INI file is read and sets up the column
widths for the user.
Works well, but there is a slight delay on closing the form, so I would
like to detect if any column widths have been changed and save them
only if...
|
by: Stan Brown |
last post by:
For some time now, I've been wanting to improve the look of the menus
at my site http://www.tc3.edu/instruct/sbrown/stat/ . I like way
these two work, opening a submenu when hovering on a selection:
http://www.cssplay.co.uk/menus/simple_vertical.html
http://www.grc.com/menu2/invitro.htm
They are pure CSS with no JS (even for MSIE 5 and 6). And they
degrade acceptably in a non-CSS browser like Lynx. But both are set
|
by: Amir Michail |
last post by:
Hi,
I would like to center a logo between left and right floats with
different widths.
The issue is that the logo should be centered with respect to the
window, not the area between the left and right floats.
Is there an easy way to do this?
|
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: 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...
| |
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |