Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2006, 10:09 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to toilandtrouble
Default text over an image using CSS?

I’m helping a friend build a web site- I’m a graphic designer who works largely in print and am learning HTLM little by little, so I basically have the book open in my lap as I design the site…

My friend wishes to have active links on top of an image (for instance an image under the left-side menu text). Everything I’ve read so far seems to imply that it is possible, but doesn’t give any insight as to how to command text position on a CSS. Is it possible? Can anyone provide a simple example?
 
Old July 12th, 2006, 10:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yes, by positioning or negative margins. But for what you describe it sounds like the image could simply be a background. Or is the image part of the content, i.e. should be there without CSS? In case you don't know, all elements can have background images with CSS. :)

--
http://yupapa.com
 
Old July 12th, 2006, 10:47 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to toilandtrouble
Default

Quote:
quote:Originally posted by meow
 Yes, by positioning or negative margins. But for what you describe it sounds like the image could simply be a background. Or is the image part of the content, i.e. should be there without CSS? In case you don't know, all elements can have background images with CSS. :)
Thanks for responding- the images aren't (or at least I haven't made them) background images. One is a top banner and then there's the left-side menu image. Do you know of any sites where positioning and negative margins are explained? I truly appreciate your help!
 
Old July 16th, 2006, 05:36 PM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you give the code you have so far it might give a better view on what you are trying to accomplish.

you can put text into a layer and then you can position the layer with css

here's an example of placing a layer with css
Code:
<style>
/*link class*/
link{
  margin-left:100px;/*this will move the div 100px to the left*/
  margin-top:100px;/*this will move the div 100px downwards*/
}
</style>

<div class="link">
  <a href=# >This is a link</a>
<div>
don't forget to check w3c for css tutorials
w3c schools

__________________________________________________ ________
This is my junk I'm gona eat it
 
Old July 16th, 2006, 05:47 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

> don't forget to check w3c for css tutorials

Just so it's clear, the W3C is a standards organization who defines standards for World Wide Web technologies, whose home page is located at http://www.w3.org.

W3 Schools is a separate, commercial entity who has no affiliation with the W3C standards organization whatsoever, whose home page is http://www.w3schools.com.

;)

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
Displaying Text using CSS austinf CSS Cascading Style Sheets 3 October 11th, 2007 02:58 PM
background image width through CSS problem inOpera iamrakesh22 CSS Cascading Style Sheets 0 May 31st, 2007 06:09 AM
image resizing with CSS LTrout CSS Cascading Style Sheets 2 July 20th, 2006 08:09 AM
Image Properties & CSS TSEROOGY CSS Cascading Style Sheets 2 October 10th, 2004 09:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.