Dynadot โ€” .com Transfer

Dreamweaver help please

SpaceshipSpaceship
Watch
Impact
6
Hey!
I want to add in a image that isn't in background and add text over it. But i don't remember which command it is.
If someone can refresh my mind on this please thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
An easy way to achieve this is to use a div tag with the image set as the background of the div.

You could use this code. Obviously you would have to change the background image, and the width/height of the div to match the size of your image.

Code:
<div style="background-image: url(myimage.jpg); border: 1px solid black; width: 500px; height: 500px;">Insert Text Here</div>

You can treat the div like an image. eg. You could link the div to a site by placing it inside an <a> tag.

Otherwise, you'll have to use an image-editing program to place text over the image.
 
Last edited:
0
•••
Alright Thanks :D
 
0
•••
or you can make those divs into layers, simple actually by adding in z-index="1", you can substitute 1,2,3,4,5,6, in there doesnt really matter just keep in mind that 1 refers to your first, bottom layer and build up from there. if you are using dream weaver you can just use the add layer tool in the insert menu.
 
0
•••
Spaceship
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back