Text on top of image Dreamweaver CS3

This is a discussion on "Text on top of image Dreamweaver CS3" within the Web Page Design section. This forum, and the thread "Text on top of image Dreamweaver CS3 are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 21st, 2007, 14:15
New Member
Join Date: Oct 2007
Location: UK
Age: 21
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Text on top of image Dreamweaver CS3

Hi, i have made an image in fireworks and have exported successfully to dreamweaver, i want to be able to put text over the top of the image without it adjusting the image or layout, i have tried a few diiferent pieces of code but everytime it just pushes the image around the page.


any ideas???????????????.


thanks
Reply With Quote

  #2 (permalink)  
Old Oct 21st, 2007, 14:22
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

why not just put the text onto your image in fireworks.
Reply With Quote
  #3 (permalink)  
Old Oct 21st, 2007, 14:23
New Member
Join Date: Oct 2007
Location: UK
Age: 21
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

becasue it needs to be updated regularly.
Reply With Quote
  #4 (permalink)  
Old Oct 21st, 2007, 14:29
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

Just apply the image as a background
Reply With Quote
  #5 (permalink)  
Old Oct 21st, 2007, 14:30
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

try this link.

http://www.htmlgoodies.com/tutorials...le.php/3480021
Reply With Quote
  #6 (permalink)  
Old Oct 21st, 2007, 14:34
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Text on top of image Dreamweaver CS3

Don't use that link, utilizes tables.
Do what Karinne said.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #7 (permalink)  
Old Oct 21st, 2007, 16:25
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text on top of image Dreamweaver CS3

You can use css:

CSS:
HTML: Select all
.background {
background-image:url(my image);
background-repeat: repeat-x/repeat-y/none (you choose!!);
}
HTML:
HTML: Select all
<div class="background">My text (above the background!)</div>
Hope this helps! It gives you a little example...
Reply With Quote
  #8 (permalink)  
Old Oct 21st, 2007, 16:30
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Text on top of image Dreamweaver CS3

To expand on Marc's code.
HTML: Select all
.background {
background-image:url(/images/image.jpg);
background-repeat: none; /*Only one image, so don't repeat it */
height: 200px; /*Height of the image */
width: 100px; /*width of the image */
}

The height and width properties are needed otherwise the div will only be bas big as the text inside it.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #9 (permalink)  
Old Oct 21st, 2007, 16:33
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text on top of image Dreamweaver CS3

New that code was a little short... lol

Cheers Alex!
Reply With Quote
  #10 (permalink)  
Old Oct 22nd, 2007, 01:23
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

Quote:
Originally Posted by dab42pat View Post
This page also gives another alternative. Scroll down about halfway :: you'll find this:
HTML: Select all
<LAYER LEFT=250 TOP=500>
               <IMG SRC=newjoe02.gif>
               </LAYER>

               <LAYER LEFT=250 TOP=500>
               <IMG SRC=overtext.gif>
               </LAYER>
This is not the best way to do it. But layers are still good. Try this:
HTML: Select all
<head>
<style type="text/css">
<!--
#img-txt {
    position:absolute;
    top:200px; /* change to position vertically */
    left:115px; /* change to position horizontally */
    width:200px; /* width of "text box" */
    height:100px; /* height of "text box" */
    z-index:1;
}
-->
</style>
</head>

<body>
<img src="file.jpg" alt="" />
<div id="img-txt">Text</div>
</body>
The position:absolute will make the div "hover" over anything. If you do not like this suggestion, just ignore it .

Cheers,
SWagner
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Oct 22nd, 2007 at 01:25.
Reply With Quote
  #11 (permalink)  
Old Oct 22nd, 2007, 07:55
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Text on top of image Dreamweaver CS3

In this example there are no good reasons to use layers... A div with a background will work fine i think ....
Reply With Quote
  #12 (permalink)  
Old Oct 22nd, 2007, 12:53
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

Yes, you're probably right. I just wanted to give an alternative in case it is needed...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Oct 23rd, 2007 at 01:33.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Image with text -&gt; text with background alexgeek Web Page Design 5 Nov 13th, 2007 23:25
Flash Text in Dreamweaver paulab Flash & Multimedia Forum 11 Oct 9th, 2007 14:19
formatting of text froma a dynamic table in dreamweaver chimp Databases 2 Jan 2nd, 2007 10:09
Dreamweaver Image Issue rjcube Web Page Design 4 Aug 8th, 2006 10:07
Fireworks to Dreamweaver - Text Diablo Web Page Design 3 Jan 24th, 2006 10:43


All times are GMT. The time now is 17:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43