473,769 Members | 2,643 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
14 4117
*Michael Satterwhite* <sa************ *****@weblore.c om>:

On my page, I'm positioning text on top of a graphic.


In your case there are even better solutions, but in general nothing (or
at least not much) is wrong with client-side image-maps in HTML.

--
It's so simple to be wise. Just think of
something stupid to say and say the opposite.
Jul 21 '05 #11
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:

<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?

I'm not an expert, but what if you just used the image as the
background of a div wrapped around those things you want the image to
be underneath?

I also don't have IE, so I don't know if that would work better.

I mean something like this:

<div style="backgrou nd: url(images/plainTop.gif">

<div> ... your buttons and stuff... </div>
<div> ... etc, etc... </div>

</div>

I tried it out on the page for which you posted the url and
it still seems to work in firefox.

-dave.

--
Dave Sisley
ds*****@sonic.n et
roth-sisley.net
Jul 21 '05 #12
Dave Sisley <ds*****@sonic. net> wrote:

<snip my mostly horribly mistaken post>

Apparantly I didn't pay attention to what I was doing. My solution
doesn't work the way I thought, and of course I didn't notice until a
minute after posting it (sorry).

I wonder though, if there still isn't a way to use the banner image as
a backgound in css instead of as an element in the html to achieve
what the OP wants?

<I return to lurk-mode...>

-dave.

--
Dave Sisley
ds*****@sonic.n et
roth-sisley.net
Jul 21 '05 #13
Christoph Paeper wrote:

in general nothing (or
at least not much) is wrong with client-side image-maps in HTML.


....except when image-loading is disabled...

Virtually all grapical browsers suck in this case.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 21 '05 #14
*kchayka* <us****@c-net.us>:
Christoph Paeper wrote:
in general nothing (or at least not much) is wrong with client-side
image-maps in HTML.


...except when image-loading is disabled...

Virtually all grapical browsers suck in this case.


That's right (and it's not the only problem they have in that mode).
Simulated image-maps with CSS positioning don't always fall back well
either, though.

--
Alcohol didn't cause the high crime rates of the '20s and '30s, Prohibition did.
And drugs do not cause today's alarming crime rates, but drug prohibition does.
(US District Judge James C. Paine, November 1991)
Jul 21 '05 #15

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
2481
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
7241
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
3362
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
7947
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
9589
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
9423
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
10047
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
9995
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
9863
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
8872
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
7410
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...
1
3962
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
2
3563
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.