Padding In IE

This is a discussion on "Padding In IE" within the Web Page Design section. This forum, and the thread "Padding In IE are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 11th, 2008, 00:59
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Padding In IE

I know I can solve this somehow but I am tired with all the problem IE has made. Basically, I have an image and I wanted to put a border around it with a padding of 3px. They work's fine in FF as usual but not in IE7! Any Idea that might do the trick?
Thanks.

Here is my CSS and HTML code.
HTML: Select all
#content img.illus {
    border: 2px solid #304818;
    padding: 3px;
}
HTML: Select all
<div id="content">
     <a href="links.asp"><img src="image.png" class="illus"></a>       
</div>
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

Last edited by Monie; Feb 11th, 2008 at 01:02.
Reply With Quote

  #2 (permalink)  
Old Feb 11th, 2008, 05:52
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,280
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Padding In IE

does this work ?

Code: Select all
#content img.illus {
    float:left;
    border: 2px solid #304818;
    padding: 3px;
if not, please give me a link or all the code and i will have a look
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Feb 11th, 2008 at 06:08.
Reply With Quote
  #3 (permalink)  
Old Feb 11th, 2008, 11:21
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Padding In IE

What's that code doing in IE 7 Monie?
Reply With Quote
  #4 (permalink)  
Old Feb 11th, 2008, 12:17
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 977
Blog Entries: 2
Thanks: 5
Thanked 19 Times in 17 Posts
Send a message via Skype™ to Aso
Re: Padding In IE

Are you using an xHTML doctype? If so you'll need to close that <img> tag with a trailing slash.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #5 (permalink)  
Old Feb 12th, 2008, 00:10
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Padding In IE

Quote:
Originally Posted by Lchad View Post
What's that code doing in IE 7 Monie?
What do you mean Linda?
I am using strict HTML 4.01 doctype, and {float: left} isn't helping me much

Ok, let me host them somewhere, gimme a minute...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #6 (permalink)  
Old Feb 12th, 2008, 00:39
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Padding In IE

This is really weird, the thing works both in FF and IE when I tested them in a free host but not in my PC! Check this!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #7 (permalink)  
Old Feb 12th, 2008, 01:39
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Padding In IE

I just wanted to know what portion of the code IE7 was not rendering correctly.
I checked FF, IE7, and IE6 and it's perfecto!
Reply With Quote
  #8 (permalink)  
Old Feb 12th, 2008, 03:36
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Padding In IE

Yeah me too! I think there is some duplication in the CSS style referring to the img style.
Let me double check my CSS first and find out what causes the bug.

Basically the problem is that the padding is not working in IE7/IE6.

Thanks..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS padding Firefox vs IE WL1207 Web Page Design 5 Oct 18th, 2007 13:56
unable to set padding tox0tes Web Page Design 5 Jul 1st, 2007 16:45
padding content Salbert Web Page Design 5 May 3rd, 2007 18:43
What's up with margins and padding in IE? Donny Bahama Web Page Design 41 Apr 19th, 2007 10:04
Disappearing padding in IE diagonalArgument Web Page Design 1 Jan 8th, 2006 14:03


All times are GMT. The time now is 03:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43