Blogger Talk blogging forums Submit your blog today! 
Blogger Talk
Blogger Talk
View topic - Overlapping in Internet Explorer



 Forum FAQ  •  Search  •   Statistics   •   Memberlist   •   Usergroups   •  Register  •  Profile  •  Log in to check your private messages   

BloggerTalk.net Forum Index » Template Design » Overlapping in Internet Explorer

Post new topic  Reply to topic
 Overlapping in Internet Explorer « View previous topic :: View next topic » 
Author Message
Invader_Stu
PostPosted: Thu Dec 07, 2006 8:28 am    Post subject: Overlapping in Internet Explorer Reply with quote

Train Ticket Criminal

Joined: Sep 08, 2006
Posts: 355
Location: Holland

Does anyone know how I can stop an image repeating more then it should in Internet Explorer. I'm trying to create boxes in my side bar with a top, background and bottom image. At the moment the background continues under and past the bottom image (see image) but FireFox deals with it fine.


I've included the code to show what I am doing at the moment. I'd also be interested in hearing if people think the way I have coded my side bar is sensible or if there is a more optermised way to do it. Thanks for any help.

p.s. It's trying to load the images in the code again. Sorry.

Code:

----- CSS CODE ---------------------

#sidebar {    
   width:200px;
    float:right;
    line-height:1.5em;
   } 

#sidebarbox {    
   background-image: url;
   width: 200px;    
   float: right;
   margin: 0px 0px 10px 0px;
   overflow:hidden;/* for ie to hide extra height*/
   } 
   
#sidebarbox_text {    
   width: 170px;    
   float: left;
   padding: 0px 15px 0px 15px;
   }


----- HTML ---------------------

<div id="sidebar">

   <div id="sidebarbox">   
   <img src=" image.jpg ">
   <div id="sidebarbox_text">
      Blog Sites:
   <ul>
        <li><a target="_blank"  href="http://www.bloggertalk.net/">Blogger Talk</a></li>
        <li><a target="_blank"  href="http://">Blogger Forum</a></li>
   </ul>
   </div>
   <img src=" image.jpg ">
   </div>

</div>

_________________
Back to top
View user's profile Send private message Visit poster's website
Sponsored Ads
Shawn
PostPosted: Thu Dec 07, 2006 2:49 pm    Post subject: Reply with quote

Site Developer
Site Developer

Joined: Sep 06, 2006
Posts: 327
Location: Canada

Hello Invader_Stu icon_smile.gif

Are you refering to the overlap about 1px under the block?

Give this a try and let me know...


Code:
#sidebar {
width:200px;
float:right;
line-height:1.5em;
}

#sidebarbox {
background-image: url(http://i52.photobucket.com/albums/g2/InvaderStu/side_bar_middle.jpg);
width: 200px;
float: right;
margin: 0px 0px 10px 0px;
overflow:hidden;/* for ie to hide extra height*/
display: inline; /* IE double margin bug fix */
}

#sidebarbox_text {
width: 170px;
float: left;
padding: 0px 15px 0px 15px;
}


I haven't tested this!

As far as the menu nav it looks fine and visitors should have no problems navigating, its clear and clean

Looking good Invader_Stu icon_biggrin.gif

Shawn
_________________
| Affordable Web-Hosting | FREE Blog Directory |
PC Windows Tips |
Ultra Game Play


Last edited by Shawn on Thu Dec 07, 2006 3:25 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Invader_Stu
PostPosted: Thu Dec 07, 2006 3:20 pm    Post subject: Reply with quote

Train Ticket Criminal

Joined: Sep 08, 2006
Posts: 355
Location: Holland

Thanks Shawn. I copied and pasted your code over mine but unforchanetly its still not working.

This bit is just the side bar. I also have a tab system for the menu. I'm not to far of putting in the Wordpress tags icon_smile.gif
_________________
Back to top
View user's profile Send private message Visit poster's website
Shawn
PostPosted: Thu Dec 07, 2006 3:31 pm    Post subject: Reply with quote

Site Developer
Site Developer

Joined: Sep 06, 2006
Posts: 327
Location: Canada

Hum, that should of worked, as the fix I gave you is for IE specificly for the double margin's...and thats what seems to be happening is the margin is being pushed!

Did you try reducing the padding for the content to see if thats causing it as I see you have it set to 15!

I will test something else and get back to you!

It makes it hard though as we can't see the theme live yet to pin point the issues but it sounds like your getting closer!

Shawn
_________________
| Affordable Web-Hosting | FREE Blog Directory |
PC Windows Tips |
Ultra Game Play
Back to top
View user's profile Send private message Visit poster's website
Invader_Stu
PostPosted: Thu Dec 07, 2006 3:56 pm    Post subject: Reply with quote

Train Ticket Criminal

Joined: Sep 08, 2006
Posts: 355
Location: Holland

I just tried changing the padding but it did not seem to have an effect.

At the moment the rounded top plus title are one image. The rounded bottom is another image (they are both the images in the HTML code which are trying to show on the forum).

The bit in between is other image which is 10 pixels high repeated and I think the last one is showing up under the bottom image rather then pushing the bottom image under it.

I'm not sure if I just said what you said but in another way icon_razz.gif

Thanks once again for helping
_________________
Back to top
View user's profile Send private message Visit poster's website
ScottishBlogger
PostPosted: Tue Dec 12, 2006 5:11 pm    Post subject: Reply with quote

Junior Member
Junior Member

Joined: Sep 09, 2006
Posts: 100
Location: Scotland

Is this what you are after?

http://bob-baillie.com/stu/

CSS
Code:
body {
   background: #fff;
}

img {
   border: 0;
}

#boxtop {
   background:url(side_bar_links.jpg) no-repeat;
   height: 50px;
   width: 200px;
}

#boxmiddle {
   background: url(side_bar_middle.jpg) repeat-y;
   height: auto;
   width: 200px;
}

#boxmiddle ul {
   margin-bottom: 0;
   margin-top: 0;
}

#boxbottom {
   background: url(side_bar_bottom.jpg) no-repeat;
   height: 20px;
   width: 200px;
}


HTML
Code:
   <div id="boxtop"></div>
   <div id="boxmiddle">
      <ul>
         <li>Blogger Talk</li>
         <li>Blogger Forum</li>
      </ul>
   </div>
   <div id="boxbottom"></div>

_________________
Bob!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Invader_Stu
PostPosted: Wed Dec 13, 2006 5:03 am    Post subject: Reply with quote

Train Ticket Criminal

Joined: Sep 08, 2006
Posts: 355
Location: Holland

Thanks ScottishBlogger icon_smile.gif

I had to make a few changes (but only because other things in the code I did not show here was conflicting with it) but that fixed it. I can see where I was going wrong to start with as well now.
_________________
Back to top
View user's profile Send private message Visit poster's website
ScottishBlogger
PostPosted: Thu Dec 14, 2006 1:54 pm    Post subject: Reply with quote

Junior Member
Junior Member

Joined: Sep 09, 2006
Posts: 100
Location: Scotland

Glad to help icon_smile.gif
_________________
Bob!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

BloggerTalk.net Forum Index » Template Design » Overlapping in Internet Explorer
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Design by Invision-Graphics | Powered by phpBB © 2006 phpBB Group
Free Ringtones | Car Credit | Free Ajax Scripts | Mortgages | Electricity Suppliers
BloggerTalk.net Statistics
 Today: 942  Yesterday: 13,214  Unique Hits: 20242  Total Hits: 7,394,750
Page Rendered in: 0.59s - Total Queries: 0 - MySQL DB: 120.9 mb's - Pages served in past 5 minutes: 20

BloggerTalk.net All rights reserved.
Unauthorized distribution, transmission or republication strictly prohibited.
Design by Invision-Graphics.com Proudly hosted by VisionThisHosting.com