Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Typing over images in DW?

Featured Replies

Hi, for some reason, i am unable to make editable regions in DW ithout the image breaking up. So im bodging it and making it all images though before i do that i was just wondering if there was anyway to type text over images??

 

Cheers!

 

Rich

  • Author

ok nice, how do i do that as im not totally up to speed with css yet?? :)

Hi

 

Something like this

 

#yourdiv {
background-image:url(yourimage);
background-repeat:no-repeat;
height yourimageheight;
margin-top:20px;
width:yourimagewidth;
}
#yourdiv p {
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
color: #FFFFFF;
margin-top:20px;
margin-left:20px;

}

 

the html

 

<div id="yourdiv"><p>your text here</p></div>

 

alter the margins to position the text

 

Pat

  • Author

cheers Pat!

 

So the html, do i put that in between the <head> tags? if not where will i put it in the html?

 

Rich

Hi

 

Something like this

 

#yourdiv {
background-image:url(yourimage);
background-repeat:no-repeat;
height yourimageheight;
margin-top:20px;
width:yourimagewidth;
}
#yourdiv p {
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
color: #FFFFFF;
margin-top:20px;
margin-left:20px;

}

 

the html

 

<div id="yourdiv"><p>your text here</p></div>

 

alter the margins to position the text

 

Pat

 

<html><head>here goes the css,javascript,metatags with their propper code structure</head><body><div id="yourdiv"><p>your text here</p></div></body></html>

 

 

 

Ok i nt have to put any code in the head tags for this??

<style type="text/css">#yourdiv {
background-image:url(yourimage);
background-repeat:no-repeat;
height yourimageheight;
margin-top:20px;
width:yourimagewidth;
}
#yourdiv p {
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
color: #FFFFFF;
margin-top:20px;
margin-left:20px;

}
</style>

this goes within the head

ok so i dont have to create a new css file then?

if  u wish to keep css within ur html then no otherwise u have to make another external css file and put this 

<link rel="stylesheet" type="text/css" href="css/nameofyourcssfile.css" media="screen" />

 

 

in the header mentioning the name and path of your css file

 

 

Hi

 

the css code I gave you can go in your existing css or in the head section of the page your div is in.

 

Pat

  • Author

Ok so from the top then..

 

Ive copied an pasted the first bit of code you sent to me Pat in the header tags of my page.

 

Secondly i have puting the <div id="yourdiv"><p>your text here</p></div> bit of code in various places but it doesnt seem tobe working. Bare in mind my web si was made in PS and sliced up so the image i am trying to type over is in the middle of my web page. Can i have one of your email addresses so i can send u a print screen image of what is goin on?

Its normally better to have all your style information separate to your html to make it easier to edit later on down the line. But if it is just going to be on one page rather than multiples then there is no harm in the head of the page.

 

Its really just a case of deciding which is easiest for later updating.

 

 

EDIT:Have you edited the css to fit into where you are wanting it, rather than just copying it exactly how pat has posted it?

 

Also you can attach images to the forum, if you click on add reply rather than using the fast reply you will have option to add images onto your post.

  • Author

Well the same image will need to be able to be edited on every page so il make a seperate css file:)

 

and how do i insert images on here?? i need a url?

Well the same image will need to be able to be edited on every page so il make a seperate css file:)

 

and how do i insert images on here?? i need a url?

 

go here imageshack

 

 

and upload ur printscreen and choose the size for forum and then paste the link u generate from there in the add image section here

Click on "add reply" instead of using the fast reply box. under the reply box is an attachments section

 

 

 

Click browse, find your image on your computer, once you done all that click attach this file, when attached it will look like this:

 

 

 

 

Click on the add to post button and it will add the image into your post through the forum, saves on using something like imageshack or uploading it onto your own site :)

  • Author

here is the layout of my pages though the cotent with obviously be different... ive been told i need to play and with the css hight and width etc, but also where exactly do i put the other bit of code so i can type over that image in the centre?

post-11711-125914927921_thumb.jpg

here is the layout of my pages though the cotent with obviously be different... ive been told i need to play and with the css hight and width etc, but also where exactly do i put the other bit of code so i can type over that image in the centre?

where is the code ? post the code

  • Author

<html>

<head>

<link rel="stylesheet" type="text/css" href="style2.css"/>

<div align="center">

<title>Proudly Leading Southamptons Cultural Revolution </title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript">

<!--

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;

}

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}

}

 

function MM_findObj(n, d) { //v4.01

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

}

 

function MM_swapImage() { //v3.0

var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

//-->

</script>

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/images/daytime_over.jpg','images/images/nightime_over.jpg','images/images/home_over.jpg','images/images/soulbowlcafe_over.jpg','images/images/whatson_over.jpg','images/images/membership_over.jpg','images/images/aboutus_over.jpg','images/images/gallery_over.jpg','images/images/privatehire_over.jpg','images/images/contact_over.jpg')">

<!-- ImageReady Slices (layout2.psd) -->

<table id="Table_01" width="772" height="1524" border="0" cellpadding="0" cellspacing="0">

<tr>

<td colspan="19">

<img src="images/layout2_01.jpg" width="772" height="33" alt=""></td>

</tr>

<tr>

<td colspan="3">

<img src="images/layout2_02.jpg" width="63" height="59" alt=""></td>

<td colspan="3"><a href="cafe.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image46','','images/images/daytime_over.jpg',1)"><img src="images/images/daytime_orig_03.jpg" alt="Daytime!" name="Image46" width="109" height="59" border="0"></a></td>

<td colspan="7">

<img src="images/layout2_04.jpg" alt="" name="Chalkboard" width="419" height="59" border="0" usemap="#ChalkboardMap" id="Chalkboard"></td>

<td colspan="3"><a href="home.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image47','','images/images/nightime_over.jpg',1)"><img src="images/images/nightime_orig_05.jpg" alt="Nightime..." name="Image47" width="121" height="59" border="0"></a></td>

<td colspan="3">

<img src="images/layout2_06.jpg" width="60" height="59" alt=""></td>

</tr>

<tr>

<td colspan="19">

<img src="images/layout2_07.jpg" width="772" height="22" alt=""></td>

</tr>

<tr>

<td rowspan="6">

<img src="images/layout2_08.jpg" width="10" height="1409" alt=""></td>

<td>

<img src="images/layout2_09.jpg" width="12" height="49" alt=""></td>

<td colspan="2"><a href="home.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image48','','images/images/home_over.jpg',1)"><img src="images/images/home_orig_10.jpg" alt="Home" name="Image48" width="62" height="49" border="0"></a></td>

<td colspan="3"><a href="cafe.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image49','','images/images/soulbowlcafe_over.jpg',1)"><img src="images/images/soulbowlcafe_orig_11.jpg" alt="Soul Bowl café" name="Image49" width="148" height="49" border="0"></a></td>

<td><a href="whatson.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image50','','images/images/whatson_over.jpg',1)"><img src="images/images/whatson_orig_12.jpg" alt="What's On" name="Image50" width="85" height="49" border="0"></a></td>

<td><a href="membership.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image51','','images/images/membership_over.jpg',1)"><img src="images/images/membership_orig_13.jpg" alt="Membership" name="Image51" width="98" height="49" border="0"></a></td>

<td colspan="2"><a href="about.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image52','','images/images/aboutus_over.jpg',1)"><img src="images/images/aboutus_orig_14.jpg" alt="About Us" name="Image52" width="93" height="49" border="0"></a></td>

<td><a href="gallery.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image53','','images/images/gallery_over.jpg',1)"><img src="images/images/gallery_orig_15.jpg" alt="Gallery" name="Image53" width="68" height="49" border="0"></a></td>

<td colspan="3"><a href="private.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image54','','images/images/privatehire_over.jpg',1)"><img src="images/images/privatehire_orig_16.jpg" alt="Private Hire" name="Image54" width="82" height="49" border="0"></a></td>

<td colspan="2"><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image55','','images/images/contact_over.jpg',1)"><img src="images/images/contact_orig_17.jpg" alt="Contact" name="Image55" width="88" height="49" border="0"></a></td>

<td>

<img src="images/layout2_18.jpg" width="13" height="49" alt=""></td>

<td rowspan="6">

<img src="images/layout2_19.jpg" width="13" height="1409" alt=""></td>

</tr>

<tr>

<td colspan="17">

<img src="images/layout2_20.jpg" width="749" height="44" alt=""></td>

</tr>

<tr>

<td colspan="4" rowspan="3">

<img src="images/layout2_21.jpg" width="141" height="1305" alt=""></td>

<td colspan="9"><img src="images/layout2_22.jpg" width="469" height="1087"></td>

<td colspan="4" rowspan="3">

<img src="images/layout2_23.jpg" width="139" height="1305" alt=""></td>

</tr>

<tr>

<td colspan="9">

<img src="images/layout2_24.jpg" alt="" width="469" height="165" border="0" usemap="#Map"></td>

</tr>

<tr>

<td colspan="5"><img src="images/footer.jpg" name="Links" width="345" height="53" border="0" usemap="#LinksMap" id="Links"></td>

<td colspan="4">

<img src="images/layout2_26.jpg" alt="" name="Culture" width="124" height="53" border="0" usemap="#CultureMap" id="Culture"></td>

</tr>

<tr>

<td colspan="17">

<img src="images/layout2_27.jpg" width="749" height="11" alt=""></td>

</tr>

<tr>

<td>

<img src="images/spacer.gif" width="10" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="12" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="41" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="21" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="67" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="21" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="60" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="85" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="98" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="81" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="12" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="68" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="15" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="29" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="38" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="54" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="34" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="13" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="13" height="1" alt=""></td>

</tr>

</table>

<!-- End ImageReady Slices -->

</div>

 

<map name="ChalkboardMap"><area shape="rect" coords="2,2,420,57" href="index.htm" alt="Back to the start...">

</map>

<map name="LinksMap"><area shape="rect" coords="228,35,263,44" href="links.htm" alt="Links">

</map>

<map name="Map"><area shape="rect" coords="343,163,346,167" href="#"></map>

<map name="CultureMap"><area shape="rect" coords="2,2,123,52" href="culturalrevolution.htm" alt="What lies ahead for the Soul Cellar?...">

<div id="yourdiv"><p>your text here</p></div>

</map></body>

</html>

  • Author

i know im not doinf it the rite way, its certainly not the way you guys would do it but i am learning..slowly...

 

Any ideas?

you put an id to the td u used

<td colspan="9" id="yourdiv">
<p class="c">put your text here</p></td>






 

and add this to css

 


.c  {
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
color: #FFFFFF;
margin-top:20px;
margin-left:20px;

}

 

and mention the height and width of images in css that pat gave and c how it comes

 

 

 

and better you learn css and div as early as possible because slicing is not at all the way to learn webdesigning

  • Author

Ok ive updated my css so itgs the same size as the image/area i want to be able to edit as shown below..

 

Now what exact code to i put exactly where havng done this?

 

(sorry to be a pain)

post-11711-125915111441_thumb.jpg

  • Author

can i just send someone my html file and css file and to do it and then send it back and il hav a look at how uve done it? would that be easier??

 

:)

can i just send someone my html file and css file and to do it and then send it back and il hav a look at how uve done it? would that be easier??

 

:)

OK send it also send the images and mark where u have to add text

 

add zipped file here

 

 

 

  • Author

oh and the bit i want to be able to edit (paste images on and write text on) is the white ish section on the middle.

 

Cheers.

oh and the bit i want to be able to edit (paste images on and write text on) is the white ish section on the middle.

 

Cheers.

anyway buddy though i am not the comfortable with this slicing still u c this linkand for the inside part try curvycorners

 

 

 

 

  • Author

i can do that....but the posted to ask how i can edit 'over' the image that was there?

u can do one thing slice the area leaving the borders of ur white area and then import in dreamweaver and delete that inside part and fill the background with similar colour and then u can do anything inside that

 

 

 

60433881.jpg

 

 

  • Author

Ok cheers! but the background is a warm 'off' white and the content region is light grey. I thought of doing that a few days ago but didnt know how to change the colour the centr 'content region' with out changing the colour of the background once i have deleted the image that was in the centre?

Ok cheers! but the background is a warm 'off' white and the content region is light grey. I thought of doing that a few days ago but didnt know how to change the colour the centr 'content region' with out changing the colour of the background once i have deleted the image that was in the centre?

frst slice it as i said then gnerate the code from photoshop and show it to me u just need to change the background color of the td that is generated within that area matching that of ur image, u can add any colors once u slice it as i said

 

 

 

and follow this tutorial for future projectsnetutts

  • Author

hmm ive not thought about that, il look into it.

 

Here is the new code with what ou said to do, i had deleted the cetre piece but kept the bits surrounding it, beflow is also an image of DW and where the code is etc..

 

<html>

<head>

<title>layout2</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!-- ImageReady Slices (layout2.psd) -->

<table id="Table_01" width="772" height="1524" border="0" cellpadding="0" cellspacing="0">

<tr>

<td colspan="21">

<img src="images/newlayout_01.jpg" width="772" height="33" alt=""></td>

</tr>

<tr>

<td colspan="3">

<img src="images/newlayout_02.jpg" width="63" height="59" alt=""></td>

<td colspan="4">

<img src="images/newlayout_03.jpg" width="109" height="59" alt=""></td>

<td colspan="7">

<img src="images/newlayout_04.jpg" width="419" height="59" alt=""></td>

<td colspan="4">

<img src="images/newlayout_05.jpg" width="121" height="59" alt=""></td>

<td colspan="3">

<img src="images/newlayout_06.jpg" width="60" height="59" alt=""></td>

</tr>

<tr>

<td colspan="21">

<img src="images/newlayout_07.jpg" width="772" height="22" alt=""></td>

</tr>

<tr>

<td rowspan="8">

<img src="images/newlayout_08.jpg" width="10" height="1409" alt=""></td>

<td>

<img src="images/newlayout_09.jpg" width="12" height="49" alt=""></td>

<td colspan="2">

<img src="images/newlayout_10.jpg" width="62" height="49" alt=""></td>

<td colspan="4">

<img src="images/newlayout_11.jpg" width="148" height="49" alt=""></td>

<td>

<img src="images/newlayout_12.jpg" width="85" height="49" alt=""></td>

<td>

<img src="images/newlayout_13.jpg" width="98" height="49" alt=""></td>

<td colspan="2"><img src="images/newlayout_14.jpg" width="93" height="49" alt=""></td>

<td>

<img src="images/newlayout_15.jpg" width="68" height="49" alt=""></td>

<td colspan="4">

<img src="images/newlayout_16.jpg" width="82" height="49" alt=""></td>

<td colspan="2">

<img src="images/newlayout_17.jpg" width="88" height="49" alt=""></td>

<td>

<img src="images/newlayout_18.jpg" width="13" height="49" alt=""></td>

<td rowspan="8">

<img src="images/newlayout_19.jpg" width="13" height="1409" alt=""></td>

</tr>

<tr>

<td colspan="19">

<img src="images/newlayout_20.jpg" width="749" height="44" alt=""></td>

</tr>

<tr>

<td colspan="4" rowspan="5">

<img src="images/newlayout_21.jpg" width="141" height="1305" alt=""></td>

<td colspan="11">

<img src="images/newlayout_22.jpg" width="469" height="7" alt=""></td>

<td colspan="4" rowspan="5">

<img src="images/newlayout_23.jpg" width="139" height="1305" alt=""></td>

</tr>

<tr>

<td rowspan="2">

<img src="images/newlayout_24.jpg" width="7" height="1080" alt=""></td>

<td colspan="9"> </td>

<td rowspan="2">

<img src="images/newlayout_26.jpg" width="6" height="1080" alt=""></td>

</tr>

<tr>

<td colspan="9">

<img src="images/newlayout_27.jpg" width="456" height="5" alt=""></td>

</tr>

<tr>

<td colspan="11">

<img src="images/newlayout_28.jpg" width="469" height="165" alt=""></td>

</tr>

<tr>

<td colspan="6">

<img src="images/newlayout_29.jpg" width="345" height="53" alt=""></td>

<td colspan="5">

<img src="images/newlayout_30.jpg" width="124" height="53" alt=""></td>

</tr>

<tr>

<td colspan="19">

<img src="images/newlayout_31.jpg" width="749" height="11" alt=""></td>

</tr>

<tr>

<td>

<img src="images/spacer.gif" width="10" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="12" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="41" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="21" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="67" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="7" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="14" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="60" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="85" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="98" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="81" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="12" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="68" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="15" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="23" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="6" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="38" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="54" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="34" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="13" height="1" alt=""></td>

<td>

<img src="images/spacer.gif" width="13" height="1" alt=""></td>

</tr>

</table>

<!-- End ImageReady Slices -->

</body>

</html>

post-11711-125924116376_thumb.jpg

  • Author

...the snap shot was taken just after i deleted the image in the centre...

  • Author

but when i save it the image all breaks up again so im back to square one? lol

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.