This is a discussion on "[SOLVED] Images" within the Web Page Design section. This forum, and the thread "[SOLVED] Images are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Images
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] Images
Hi all!
I needed help with something, I want to add the images on my page into the css, rather than the html page, I have used the: background: url("images/header.jpg"); in the body tag, but can't seem to add any more images other than that to the stylesheet? can anyone help me with this, I have tried loads of things but can't get other images in the stylesheet! Thanks Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
|
|
#2
|
||||
|
||||
|
Re: Images
have you got repeat/repeat-x/repeat-y/no-repeat in your stylesheet?
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#3
|
|||
|
|||
|
Re: Images
Yeah, I have got no-repeat on it, and it works for the header image, but when I go to add other images to the stylesheets it wont work :S
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
#4
|
|||
|
|||
|
Re: Images
can you post your css showing where you are trying to put the images.
|
|
#5
|
|||
|
|||
|
Re: Images
Below is my css, as you can see my header is placed in the body and appears on the page, but when I am trying to add the menu bar image I have it won't appear on the page? why is this? is it anything to do with fact I am using Div's? would something be more appropriate making it work?
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
#6
|
|||
|
|||
|
Re: Images
Er...
You just repositioned the whole page by 10px to the left and 1px down! Are you sure you know what you're doing with absolute positioning? I'd advise you not to use absolute positioning to layout your pages unless you have a strong theoretical understanding of CSS positioning. |
|
#7
|
|||
|
|||
|
Re: Images
And to show an background image, it's always best to add a width and height... otherwise, the box is not even 1px by 1px so your bg won't show.
|
|
#8
|
|||
|
|||
|
Re: Images
Karrine thanks alot, that is exactly what i needed for it to work, what a basic mistake eh!
Ahh well, we learn by them Thanks Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
|
|
#9
|
|||
|
|||
|
Re: Images
Ah! No problem ... I do that sometimes to ... forget to add width and height! Search for HOURS why it doesn't work, only to smack my head against the wall at my silliness!
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [solved] Some images showing up, others not | Ohfrikenno | Starting Out | 2 | Apr 5th, 2008 15:24 |
| [SOLVED] My nav images | thewebkid | Web Page Design | 21 | Dec 24th, 2007 17:26 |
| [SOLVED] using background images in a list | marisa | Web Page Design | 3 | Nov 28th, 2007 12:55 |
| [SOLVED] Background Images | admiral1977 | Starting Out | 6 | Oct 29th, 2007 15:31 |
| [SOLVED] Uploads Images! Need help | randy9378 | Webforumz Cafe | 7 | Oct 23rd, 2007 19:11 |