473,756 Members | 2,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text positioning w/Styles

On my page, I'm positioning text on top of a graphic. I'm using the
following code on my page:

<img src="images/plainTop.gif" border="0" alt="" />
<div style="position : absolute; top:98px; font-size: small">
<div style="position : absolute; left: 190px"><a href="aboutus.h tml">About
Us</a></div>
<div style="position : absolute; left: 321px"><a
href="faq.html" >FAQ</a></div>
<div style="position : absolute; left: 415px"><a
href="stockspri ngs.html">Stock Springs</a></div>
<div style="position : absolute; left: 542px"><a href="sitemap.h tml">Site
Map</a></div>
<div style="Position : absolute; left: 655px"><a
href="resources .html">Resource s</a></div>
</div>

This displays perfectly in both Firefox and Mozilla. In Internet Explorer,
however, the text doesn't appear at all. Would one of you experts be so
kind as to point out my error?

tia
---Michael
Jul 21 '05 #1
14 4114
Don't multi post.

Michael Satterwhite <sa************ *****@weblore.c om> wrote:
On my page, I'm positioning text on top of a graphic. I'm using the
following code on my page:
[snip code]
An url is much preferred.
This displays perfectly in both Firefox and Mozilla. In Internet Explorer,
however, the text doesn't appear at all. Would one of you experts be so
kind as to point out my error?


Ditch the absolute positioning. You are misusing it.

--
Spartanicus
Jul 21 '05 #2
Spartanicus wrote:
Don't multi post.

Michael Satterwhite <sa************ *****@weblore.c om> wrote:
On my page, I'm positioning text on top of a graphic. I'm using the
following code on my page:


[snip code]
An url is much preferred.


For what? There *IS* a url there.
This displays perfectly in both Firefox and Mozilla. In Internet Explorer,
however, the text doesn't appear at all. Would one of you experts be so
kind as to point out my error?


Ditch the absolute positioning. You are misusing it.


And use what in its place? I'm stuck with the graphics (someone else's work
that I have to use).

I'm very open - and grateful - for suggestions, but "Don't do that" isn't
very useful when I have to accomplish the goal. Maybe not the way it's
being done, but the goal has to get done.

Jul 21 '05 #3
Once upon a time *Michael Satterwhite* wrote:
Spartanicus wrote:
Don't multi post.

Michael Satterwhite <sa************ *****@weblore.c om> wrote:
On my page, I'm positioning text on top of a graphic. I'm using the
following code on my page:


[snip code]
An url is much preferred.


For what? There *IS* a url there.


Where? I don't see any URL either, only a part of some coding stuff

--
/Arne
http://web.telia.com/~u97802964/

The old believe everything, the middle-aged suspect everything and the
young know everything. (Oscar Wilde)
Jul 21 '05 #4
Arne wrote:
Once upon a time *Michael Satterwhite* wrote:
Spartanicus wrote:
Don't multi post.

Michael Satterwhite <sa************ *****@weblore.c om> wrote:

On my page, I'm positioning text on top of a graphic. I'm using the
following code on my page:

[snip code]
An url is much preferred.


For what? There *IS* a url there.


Where? I don't see any URL either, only a part of some coding stuff


Each section has a URL associated with it. From the first section:

<img src="images/plainTop.gif" border="0" alt="" />
<div style="position : absolute; top:98px; font-size: small">
<div style="position : absolute; left: 190px">
<a href="aboutus.h tml">About Us</a></div>
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^

Jul 21 '05 #5
Michael Satterwhite <sa************ *****@weblore.c om> wrote:
[snip code]
An url is much preferred.


For what? There *IS* a url there.


Posting code in this group is not appreciated, upload a real example
using real content to a webserver and post the url instead. This allows
us to spot what the real problem is and give useful advice on how you
should solve it.
Ditch the absolute positioning. You are misusing it.


And use what in its place?


Can't say until you show us what the context is, see above.

--
Spartanicus
Jul 21 '05 #6
Once upon a time *Michael Satterwhite* wrote:
Arne wrote:
Once upon a time *Michael Satterwhite* wrote:
Spartanicus wrote:

Don't multi post.

Michael Satterwhite <sa************ *****@weblore.c om> wrote:

>On my page, I'm positioning text on top of a graphic. I'm using the
>followin g code on my page:

[snip code]
An url is much preferred.

For what? There *IS* a url there.


Where? I don't see any URL either, only a part of some coding stuff


Each section has a URL associated with it. From the first section:

<img src="images/plainTop.gif" border="0" alt="" />
<div style="position : absolute; top:98px; font-size: small">
<div style="position : absolute; left: 190px">
<a href="aboutus.h tml">About Us</a></div>
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^


That is a file on domain I don't know what or where it is. Obviously you
don't know what a URL is?

URL is a abbreviation of "Uniform Resource Locator", the global address
of documents and other resources on the World Wide Web.

In my sig below, I have an URL. The first part of the address indicates
what protocol to use, and the second part specifies the the domain name
where the resource is located. After that comes either a file or a
folder (also called directory) that contain files.

So what is the URL to the file "aboutus.ht ml"? :)

--
/Arne
http://web.telia.com/~u97802964/

The old believe everything, the middle-aged suspect everything and the
young know everything. (Oscar Wilde)
Jul 21 '05 #7
Spartanicus wrote:
Michael Satterwhite <sa************ *****@weblore.c om> wrote:
[snip code]
An url is much preferred.


For what? There *IS* a url there.


Posting code in this group is not appreciated, upload a real example
using real content to a webserver and post the url instead. This allows
us to spot what the real problem is and give useful advice on how you
should solve it.


Happy to:

http://linux.leecospring.com/~direct...st/catalog.php

I apologize for the code posting and will remember this in the future. I
appreciate all help.

Note that it displays correctly in Mozilla / Firefox. The links disappear in
Internet Explorer.

Jul 21 '05 #8
in comp.infosystem s.www.authoring.stylesheets, Michael Satterwhite wrote:

http://linux.leecospring.com/~direct...st/catalog.php Note that it displays correctly in Mozilla / Firefox. The links disappear in
Internet Explorer.


Problem might be absolute position inside absolute position. Use classes
and ids instead of inline style:

..links {top:98px}
#about {left:123px}

<a href="about" class="links" id="about">a</a>

I wouldn't use absolute positioning here, as you easily get too big font
to fit the container. Better make container strech. Your link buttons are
somewhat easy, you need just image of extra wide and high button, with
another that has tail of other before head.

You have also made your head image fixed, but there is no real reason to
do that. It is not nice to get horizontal scrollbar for that. (have to
agree that it is nowhere near easy to make that image fluid, but it would
be possible to shave of 150pxs at least when needed, quite nicely)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #9
Michael Satterwhite <sa************ *****@weblore.c om> wrote:
http://linux.leecospring.com/~direct...st/catalog.php


Things you should solve:

Don't attempt to position menu text on top of a graphic, it breaks
horribly on client systems because you have no idea what the text size
is going to be.

Don't use divs to mark up a list of links, use an unordered list,
optionally use css to display the links horizontally. Google for "ala
taming lists" for a tutorial on how to do this proper. Another tutorial
on the same site may also be useful to you, Google for "ala sliding
doors".

--
Spartanicus
Jul 21 '05 #10

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

Similar topics

2
1257
by: Dennis M. Marks | last post by:
Please ignore all previous postings from me for the past couple of days. All has been solved except for the following. I have three divisions that I am having trouble positioning. What works in IE does not work in Netscape. I have removed all top and left positioning from the css. If you look at my current home page you will see 3 divisions on the bottom. There is a calendar (calendar), calendar controls (controls), and a counter...
0
1989
by: Quinton | last post by:
I'm running a website that uses CSS to format the text and a CGI program Coranto that icludes news updates via SSI. My problem is that some parts of the CSS don't seem to take effect on the included news. All four link styles are used, and all four work in the included text files. The text styles, on the other hand, seem not to work at all. The text that's part of the actual HTML file is formated according to the CSS codes. However, the...
7
2736
by: James Thornton | last post by:
I'm trying to make the transition from tables to CSS, and I need someone to explain how to achieve the following layout (understanding the concepts behind this layout will help me considerably in grokking CSS positioning): http://unifiedmind.com/images/css-example.gif In this example, boxes one and two are wrapped in a box that is 100% wide.
14
2480
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These properties specify offsets with respect to the box's containing block." Please take a look at http://gavelcade.com/abspos.html and help me understand why my nested, absolutely positioned divs are being positioned with respect to the page rather...
11
7239
by: Robert Bowen | last post by:
Hello all. I have been given mock-ups (in static HTML) of some pages for a site I am working on. The client would like these pages to look exactly as they do now. The problem is that the content is dynamic, it comes from a database. My question -- with CSS (because with HTML tables I don't think it's possible) how can I make my text "flow" in two columns? eg. If there are 100 lines of content, I would like 50 to be in the 1st column, and...
9
11830
by: fleemo17 | last post by:
I'm hoping a CSS guru can help me with what seems like a simple enough goal. What I'm going for is a large photo centered in the browser with text positioned on top of it. Using the CSS below, when the user resizes their browser window, the photo centers in the browser fine but the text box stays locked on the left hand side. Is there a way to have the text box move in relation to the photo when the browser is resized? Here's my CSS:
8
3361
by: Edward | last post by:
I used to do this all the time in HTML-table layouting. How do I do this in CSS? -------------------------------------------------- <table width="400px"> <tr> <td bgcolor="beige">one line of text</td> </tr> <tr> <td bgcolor="#eeeeee" align="center">this is another line of text</td>
18
7944
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I would like it far right centered vertically. #test { width: 100%; height: 55px; margin: 0 0 0 0;
0
9456
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
10040
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
9873
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...
0
9713
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 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...
0
8713
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...
1
7248
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 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...
0
5142
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...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3359
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.