Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-29-2012, 10:45 PM   PM User | #1
gimano
New Coder

 
Join Date: Oct 2011
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
gimano is an unknown quantity at this point
divs positioning problem

hello
i have this website:
efrat.gimano.info
it has a main div called "wrap" and all the other divs should be inside it, with z-index.

any idea what i did wrong?

Thanks!
gimano is offline   Reply With Quote
Old 05-29-2012, 10:57 PM   PM User | #2
bigcasey123
New Coder

 
Join Date: Feb 2012
Posts: 96
Thanks: 1
Thanked 5 Times in 4 Posts
bigcasey123 is an unknown quantity at this point
Code:
<div class="wrap" name="main" >

		<div class="moduletable">
					<h3>main bg</h3>
					<p><img src="/images/efratbg.png" alt="efratbg" width="1024" height="768" style="display: block; margin-left: auto; margin-right: auto;" /></p>		</div>
You forgot another </div> because you started two divs. Unless the </div> is at the end.
bigcasey123 is offline   Reply With Quote
Old 05-29-2012, 10:59 PM   PM User | #3
gimano
New Coder

 
Join Date: Oct 2011
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
gimano is an unknown quantity at this point
its in the end, this div should rap all divs
gimano is offline   Reply With Quote
Old 05-30-2012, 12:53 AM   PM User | #4
waxdoc
Regular Coder

 
Join Date: Jul 2008
Posts: 155
Thanks: 9
Thanked 13 Times in 13 Posts
waxdoc is an unknown quantity at this point
need POSITION for z-index

You have so many CSS files, but one is specifying z-index for selectors that are not positioned.

See for instance http://coding.smashingmagazine.com/2...ehensive-look/
Quote:
Although z-index is not a difficult property to understand, due to false assumptions it can cause confusion for beginning developers. This confusion occurs because z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative.
Give your .wrap class a background-color to test it. {Why not ID #wrap if it is unique to page?]
waxdoc is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33 AM.


Advertisement
Log in to turn off these ads.