CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Closed Thread
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 June 11th, 2004, 02:57 PM
ywickham ywickham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 91 ywickham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m
Reputation Power: 6
Text in div displays then dissappears!

The page with the problem is this one: http://www.yazmin.net/teamintraining/photos.php

When the page loads in IE (I'm using v6, but this seems to be happening in all versions of IE), you can see my introduction text display, but then it looks like another div is being loaded and the text promptly dissappears. I don't have this problem in other browsers. Below is the relevant CSS and HTML code:

CSS:
Code:
#content {
	background-image: url(/teamintraining/images/bkg.gif);
	margin: 30px 13em 0 3em;
	padding-right: 60px;
}
 
#navigation {
  	color:#006600;
  }

.img-shadow {
  float:left;
  background: url(/teamintraining/images/shadowAlpha.png) no-repeat bottom right !important;
  background: url(/teamintraining/images/shadow.gif) no-repeat bottom right;
  margin: 10px 0 0 10px !important;
  margin: 10px 0 0 5px;
  }

.img-shadow img {
  display: block;
  position: relative;
  background-color: #fff;
  border: 1px solid #a9a9a9;
  margin: -6px 6px 6px -6px;
  padding: 4px;
  }
 


HTML:
Code:
<body>
<br><h2>Welcome to Jason and Yazmin Wickham's Team In Training Update Site!</h2><br><br>
<div id="main">
  <div id="menu">
    <div align="center"><?php include("includes/navigation.htm"); ?><p>&nbsp;</p></div>
  </div>
  <div id="content">
  <h1>Photo Gallery</h1>
  <p>As Jason and I go through training, we will make an effort to post pictures here for viewing.</p>
  <p><?php echo $gallery->getThumbnailsDisplay() ?></p>
  <br style="clear:both" />
  </div>
</div>
</body>


Any ideas? Thanks!

Reply With Quote
  #2  
Old June 11th, 2004, 05:55 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,715 Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 16 h 43 m 11 sec
Reputation Power: 642
i have experienced that msie have problem with overlaping background when float and position relative is used.

try to add position:relative; to .img-shadow
and to #content

Last edited by Akh : June 11th, 2004 at 06:06 PM.

Reply With Quote
  #3  
Old June 21st, 2004, 10:49 AM
ywickham ywickham is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 91 ywickham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m
Reputation Power: 6
Thank you Akh.

Unfortunately, the suggestion worked, but messed up the positioning of the "content" div and pushed it over the navigation bar on the right.

I was able to fix the problem though, by creating duplicate mark up for the content id as a class and wrapping the text of the page into the content class div while leaving the display of the photos in the content id div.

Thank you again for your help.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsWeb DesignCSS Help > Text in div displays then dissappears!


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT