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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 21st, 2007, 14:15
Junior Member
Join Date: Oct 2007
Location: UK
Age: 22
Posts: 11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 21st, 2007, 14:22
Reputable Member
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 21st, 2007, 14:23
Junior Member
Join Date: Oct 2007
Location: UK
Age: 22
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text on top of image Dreamweaver CS3

becasue it needs to be updated regularly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 21st, 2007, 14:29
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 21st, 2007, 14:30
Reputable Member
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 21st, 2007, 14:34
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 21st, 2007, 16:25
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,794
Thanks: 0
Thanked 17 Times in 17 Posts
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...
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 21st, 2007, 16:30
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 21st, 2007, 16:33
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,794
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Text on top of image Dreamweaver CS3

New that code was a little short... lol

Cheers Alex!
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 22nd, 2007, 07:55
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,794
Thanks: 0
Thanked 17 Times in 17 Posts
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 ....
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
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 14:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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