473,666 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:relati ve. 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 4483
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:relati ve. 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
2453
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: http://www.ammicro.co.uk/r/embellish.css The problem concerns the whitespace around the product images that appear on the page (I've temporarily placed a grey border around the ones in question
1
1700
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
1842
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 = new Image(); slides = new Image();
5
1215
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: ----------------------------------------------------------------------------------------------- <!-- image1="smallpics/001-smallpic.jpg"
8
3930
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 image. my intention is for the header and text to appear to the right of the unfaded portion of the image, and on top of the watermarked portion. At most viewport widths it works as intended. However, if the viewport is narrowed enough to...
53
4654
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, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
1
19663
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 overriding CSS to customize your aStore." Their setup page is divided into two sections. On the right they show the existing CSS. On the left there is a box where you can add the new code. They have tabs for "Global", "Category Page", "Detail Page",...
1
2823
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 background image needs to display on a black color background, like it is now. The web page is here: The Official Website of The Angels : My Boyfriend's Back! Any advice is appreciated!
0
2840
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. Here is the website: holtz-realty And also the html file and css file. Anny help will by mostly appreciated. I did try everything I can think of. HTML:
0
8863
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...
1
8549
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
7378
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...
0
5661
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();...
0
4192
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
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
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
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
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...

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.