[SOLVED] Images

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 23rd, 2007, 10:27
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
[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
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 23rd, 2007, 10:34
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
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.
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 23rd, 2007, 10:43
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
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 23rd, 2007, 10:49
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Images

can you post your css showing where you are trying to put the images.
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 23rd, 2007, 10:51
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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?

Code: Select all
body {
 background: url("images/header.jpg");
 background-repeat: no-repeat;
 position: absolute;
 top: 1px;
 left: -10px;
}
#menu {
 position: absolute;
 top: 202px;
 left: -5px;
}
Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
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 23rd, 2007, 11:50
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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 23rd, 2007, 11:58
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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 23rd, 2007, 12:19
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
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 23rd, 2007, 12:23
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
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!
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] 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


All times are GMT. The time now is 18:03.


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