CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 1st, 2013, 01:47 AM
siddy02 siddy02 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 siddy02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 23 sec
Reputation Power: 0
New Member - Urgent help css background image

i am making a website for my college project in c# vs 2010 , in login page css back ground image is not loading but when i log in to welcome page after entering password the bg image loads in welcome page and when i press back button of browser then there also it load, so my problm is that how to load bg image at login page before log in,i.e. when i open the website......please help...

Reply With Quote
  #2  
Old March 1st, 2013, 08:29 AM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
it sounds like the element that has a background image doesn't exist before logging in. You might want to add that element or assign the background image to an element that does exist on both pages for example:
Code:
body{background:url('../images/background.jpg') no-repeat 50% 50%}

Or it the image you speak about is not a (literal) background image at all and just part of the content like so
Code:
<img src="images/background.jpg" alt="" />

in that case also just add that element to the page before logging in.
__________________
PHP Tutorial

Last edited by aeternus : March 1st, 2013 at 08:34 AM.

Reply With Quote
  #3  
Old March 1st, 2013, 09:17 PM
siddy02 siddy02 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 siddy02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 23 sec
Reputation Power: 0
Quote:
Originally Posted by aeternus
it sounds like the element that has a background image doesn't exist before logging in. You might want to add that element or assign the background image to an element that does exist on both pages for example:
Code:
body{background:url('../images/background.jpg') no-repeat 50% 50%}

Or it the image you speak about is not a (literal) background image at all and just part of the content like so
Code:
<img src="images/background.jpg" alt="" />

in that case also just add that element to the page before logging in.

First Of all thank you for reply,,,, but my problem is still as it is , i tried both ur methods... and the basic code in both the page is same, and image path is also correct ir loads in 2nd page but not in 1st before logging, but loads in 1st also after log in......some small thing iss missing,,,

Reply With Quote
  #4  
Old March 2nd, 2013, 12:07 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Quote:
First Of all thank you for reply,,,, but my problem is still as it is , i tried both ur methods... and the basic code in both the page is same, and image path is also correct ir loads in 2nd page but not in 1st before logging, but loads in 1st also after log in......some small thing iss missing,,,

You're very welcome!

But what is really missing is either your code (post it) or a link with login credentials so people can help more specifically.

Last edited by aeternus : March 2nd, 2013 at 12:15 PM.

Reply With Quote
  #5  
Old March 3rd, 2013, 06:58 AM
siddy02 siddy02 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 siddy02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 23 sec
Reputation Power: 0
Quote:
Originally Posted by aeternus
You're very welcome!

But what is really missing is either your code (post it) or a link with login credentials so people can help more specifically.

imagebam.com/image/bc80db240706166 this web add. of code plz enter ww in beggening

Reply With Quote
  #6  
Old March 3rd, 2013, 07:00 AM
siddy02 siddy02 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 siddy02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 23 sec
Reputation Power: 0
the above is the code of css style sheet of log in page and same is for welcome page ,but welcome page is imlemented by master page...

Reply With Quote
  #7  
Old March 3rd, 2013, 08:51 AM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Ok, as you can see in your css there is a class of .style1 that has this background image. But if you read the sticky we require some html because as you know html & css are pretty much bound to each other.

if you open up the source before logging in (right click view source) try to find (crtl+f) .style1

The problem with this thread we can help you unless you give us something to actually work with (not going to ask again). It could very well be, that the element before logging in doesn't exist, is behind another element, is overwritten, has some weird margin showing up outside the page.

Without HTML & CSS we can't help. Ideally I would compare the logged in page against the normal page. You now at least know what to look for (.style1)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > New Member - Urgent help css background image

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap