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 28th, 2012, 12:02 AM
andreea115 andreea115 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 48 andreea115 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 2 m 36 sec
Reputation Power: 2
[Solved] Help with positioning of backgroud images

Hello everyone

i need a little help with my positioning of two background images- each of the images is stacked upon the other.

Both images are held within their own div tag; but the 2nd image's div tag is contained within the div tag of the first ( it is a smaller images).

The problem that i have is that the CSS Rules ( the Margin Function) for the 2nd Image is now affecting the css rules for the first main image: i am not clear why this is happening as the second image is contained within the div of the first image and should not therefore affect it.

it might help at this moment if i showed u my rules.


Code:

The Div Tags 




<div id="pagewrapper"><!-- START div id pagewrapper -->

<div id="midbody_mainpage"><!-- START  div id midbody   -->

<div class="firstpage_regform"><!-- START  div id midbody   -->

<!-- END  div id firstpage_regform  -->

</div>  <!-- END div id midbody  -->

</div><!-- END div id pagewrapper -->

THE CSS CODE

	#midbody_mainpage{
		
		
		  background: url("/images/pageimages/mainwindowpic.jpg")repeat-x , repeat-y       scroll 0 0 transparent ;
		  height:399px;
		  margin-top:0px;
	
		}
		
		
		
		
 .firstpage_regform {
	background: url("/images/pageimages/reg_form_background2.jpg") ;
	background-repeat:no-repeat;
	padding-top: 46px;
	padding-bottom: 0px;
	margin-left: 640px;
	height:292px;
	width:353px;
	margin-top:46px;
	
}




THE PROBLEM

the margin-top from the div of the second smaller image (.firstpage_regform ) is causing the main div to pull down by 46px.

Can anyone please recommend what i need to do.

warm regards


Andreea 115

Reply With Quote
  #2  
Old November 30th, 2012, 09:44 PM
Nanomech's Avatar
Nanomech Nanomech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Location: The Pleiades
Posts: 196 Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 23 h 52 m 24 sec
Reputation Power: 7
Send a message via Skype to Nanomech
I'm working on it right now, can I see your styles for 'productwrapper' please?

Regards,

NM.

Reply With Quote
  #3  
Old December 1st, 2012, 01:07 AM
andreea115 andreea115 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 48 andreea115 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 2 m 36 sec
Reputation Power: 2
Quote:
Originally Posted by Nanomech
I'm working on it right now, can I see your styles for 'productwrapper' please?

Regards,

NM.


hello Nanomech

thank you so much for your reply. it was very kind of you to look into it

i have however now resolved the issues.

warmest regards

Andreea 115

Reply With Quote
  #4  
Old December 1st, 2012, 07:29 AM
Nanomech's Avatar
Nanomech Nanomech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Location: The Pleiades
Posts: 196 Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 23 h 52 m 24 sec
Reputation Power: 7
Send a message via Skype to Nanomech
No problem, I ended up crashing out at about 4am

Thanks for your reply to let me know as I was just about to start working on it

Kind regards,

NM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > [Solved] Help with positioning of backgroud images

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