473,378 Members | 1,380 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,378 software developers and data experts.

Help needed with text that overlays an image



Hello!! Can you help me with my CSS problems? I have created a page
that overlays text on an image. the problem is that it is leaving all
this space at the bottom of background image that I also need to
remove.

The page is for a nonprofit organization. You can see my HTML code
here, and I have attached a graphic that shows how the page should
look.

http://burningart.com//isf/Peter.html

Don't worry about the funky colors, this is just my debugging attempts
to see what is happening.

I am trying to achieve a text overlay: I want to put some text on top
of the books image. I have managed to do this using position:
relative. The problem is, that the browser is allocating space for the
text below the books image, and then moving the box up to the
appropriate place. This means, that there is all this yellow vertical
space below the books image, and I want to remove this vertical yellow
space.

If you have any suggestions, thoughts, fixes that would be great. Maybe
there is in another way to do this, not using position:relative. I
have been working hard on this for the last week, and have learned a
lot about CSS, just need some expert help!

Thanks for your help and for reading this,

lineone

Feb 11 '06 #1
1 4474
Line 1 wrote:

Hello!! Can you help me with my CSS problems? I have created a page
that overlays text on an image. the problem is that it is leaving all
this space at the bottom of background image that I also need to
remove.

The page is for a nonprofit organization. You can see my HTML code
here, and I have attached a graphic that shows how the page should
look.

http://burningart.com//isf/Peter.html

Don't worry about the funky colors, this is just my debugging attempts
to see what is happening.

I am trying to achieve a text overlay: I want to put some text on top
of the books image. I have managed to do this using position:
relative. The problem is, that the browser is allocating space for the
text below the books image, and then moving the box up to the
appropriate place. This means, that there is all this yellow vertical
space below the books image, and I want to remove this vertical yellow
space.

If you have any suggestions, thoughts, fixes that would be great. Maybe
there is in another way to do this, not using position:relative. I
have been working hard on this for the last week, and have learned a
lot about CSS, just need some expert help!

Thanks for your help and for reading this,

lineone


lineone,

Hmmm, I just learned something here. See
http://www.w3.org/TR/CSS21/visuren.h...opdef-position and go down to
the 'relative' section, where it says, "When a box B is relatively
positioned, the position of the following box is calculated as though B
were not offset."

So you moved the position of the text, but the space it previously
occupied is still accounted for when positioning the following box.

So things are working to spec.

Since you are learning, you might want to read through some stuff I've
collected at http://pages.prodigy.net/chris_beall/TC/index.html. Won't
solve this particular challenge, but may help avoid many others.

Chris Beall

Feb 12 '06 #2

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

Similar topics

1
by: Tony Carnell | last post by:
Hi, I've created a series of pages, one of which can be found at: http://www.ammicro.co.uk/products/2ndWave.htm The stylesheet for this page can be found at:...
1
by: cfyam | last post by:
I want read some texts from database, and transfer this words to an image file, how can I do?
3
by: ATS | last post by:
I'm trying to set up a slide show on a web page using Javascript. Here is the code I have so far: <script language="javascript"> alert("**in test area 1"); slides = new Array(); slides =...
5
by: Buchwald | last post by:
hello group, I have a long (large) script that shows a random picture when a webpage is refreshed. It's long because i have a lot of pictures: 246 Here is some code:...
8
by: Warren Post | last post by:
At <http://snow.prohosting.com/srcopan/dry/test.es.html>, you will see that the background image runs down the left margin. The right hand side of it is faded, watermark style, but it is one single...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
1
by: swc76801 | last post by:
I desperately need help. My understanding of CSS is non-existent. I have a store http://astore.amazon.com/texasheat-20 with Amazon.com. According to the information from Amazon.com "Write your own...
1
by: lawgal | last post by:
My problem is I need to create CSS that overlays my navigation text on top of the background image so it appears in the correct position (bottom of the stage) in both FF & IE. But also, the...
0
by: richard12345 | last post by:
Hi Guys I have problem with site I am building. The sidebar with menu and other thinks is overlapping footer. The footer move with the content and but it dos it dos not move with the sidebar. ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.