This is a discussion on "Text over an image" within the Web Page Design section. This forum, and the thread "Text over an image are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Text over an image
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Text over an image
Hi, I want to put text over an image but I don't know all I can find how to do it with tables.
|
|
|
|
||||
|
Re: Text over an image
say it isn in a paragraph:
xhmtl
ok:
if it is a reepeating image then you can use repeat (to repeat both directions), repeat-x (to repeat horizontally only) or repeat-y (to repeat vertically only). At the moment it is set to no-repeat, whcih means it will not repeat.
To add padding around the text you can use
If you want different padding top left bottom and right you can use the followjing shorthand: padding: topandbottom leftandright; (eg padding: 10px 5px; would add 10px to top and bottom and 5pxx to the sides) padding top right bottom left; (eg padding: 2px 3px 4px 5px; would add 2px to top, 3px to right, 4px to bottom and 5px to left) Hope that helps |
|
||||
|
Re: Text over an image
hmmm ... put the image as a background?!?
|
|
|||
|
Re: Text over an image
Can you have 2 background images.
|
|
|||
|
Re: Text over an image
There seems to be a problem I want multiple paragraphs to be selected and put over 1 image but you code seems to make a new image for ever bit of text.
|
|
|||
|
Re: Text over an image
Well I want to make it look like this
. |
|
||||
|
Re: Text over an image
Ok...
in that case put a div round that content. So you would ahve this:
|
|
||||
|
Re: Text over an image
Well ... that's because the code he gave you was just an example. If you would have given us a bit more to go on, we would have stirred you in a better direction.
You'll need 3 background for this to work. One with the top rounded corners that you can apply to the News heading, one with the side to apply to the middle/content and one for the footer. |
|
||||
|
Re: Text over an image
Quote:
Sure post up here if your really stuck or for a bit of direction. but that code I gave you polus reading some tutorials on background images and searching google should have been enough for you to go off an experiement. |
![]() |
| Tags |
| css, html, image, text |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image and text caption problem | George | Web Page Design | 8 | Feb 27th, 2008 18:14 |
| [SOLVED] Image with text -> text with background | alexgeek | Web Page Design | 5 | Nov 13th, 2007 23:25 |
| Text on top of image Dreamweaver CS3 | LeeNic | Web Page Design | 11 | Oct 22nd, 2007 12:53 |
| Text/image swap | LorEye | Website Planning | 2 | May 19th, 2007 17:43 |
| text next to image | ivyholly | Web Page Design | 5 | Dec 21st, 2005 15:49 |