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 November 17th, 2012, 08:21 AM
CSS_help CSS_help is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 CSS_help User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 0
Unhappy Need Help with CSS Backgrounds

Hey guys, I'm in the process of creating a website. On my index page I'm including 3 pictures. A Background, two images with hrefs to Login and Signup.

So I got everything to work all fine, but because I'm trying hard not to work with position: (don't ask why) I am left with a massive white area if someone is zoomed in or out too far or have a different monitor size. I want to fill this white area with a color, but how would I do so?

I have set:
Code:
body{
    background-image:url(background.png);
	background-size:1300px;
	background-repeat:no-repeat;
}

#create{
	margin-top:400px;
	margin-left:490px;
}

#login{
	margin-top:1px;
	margin-left:490px;
}


That's all the CSS. As you can see I have positioned things with pixels, so I can use the body as a ratio.

The HTML goes along the lines of:
Code:
	<body>
		<div id="create">
			<a href="create.html"><img src="create.png"></img></a>
		</div>
		
		<div id="login">
			<a href="login.html"><img src="login.png"></img></a>
		</div>
	</body>


So basically I have an area, the whole body, that's one picture and I can only work inside this area. However the outside of the body is just plain white, is there a way I can set this white to a color of my choice? I tried editing the HTML but it just screws it all up..


If I'm not clear enough, just say.

thanks for anyone that helps - I'll check here regularly for replies.

Reply With Quote
  #2  
Old November 17th, 2012, 12:32 PM
bradix_14 bradix_14 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 bradix_14 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 9 sec
Reputation Power: 0
Doesn't {background-color: } do the trick?

Code:
body{
    background-image:url('mockup.png');
	background-size:1300px;
	background-repeat:no-repeat;
	background-color: blue;
}

Reply With Quote
  #3  
Old November 17th, 2012, 02:53 PM
CSS_help CSS_help is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 CSS_help User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 0
Yup

Quote:
Originally Posted by bradix_14
Doesn't {background-color: } do the trick?

Code:
body{
    background-image:url('mockup.png');
	background-size:1300px;
	background-repeat:no-repeat;
	background-color: blue;
}


I had tried stuff, nothing had worked.

Don't worry anyway, thanks for the help.

If a Mod stumbles upon this thread, it may be closed!

I started a whole new design for it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Need Help with CSS Backgrounds

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