|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Image being cut off in IE6 - help/advice please
Hi all, I have modified a wordpress theme for my website and its nearly perfect except for an issue where my photo is being cutoff and I have had a look but it appears to be beyond my skill level and is making me pull my hair out.
Would REALLY appreciate if anyone can solve this one for me! hmmm I cannot post the url yet as i am new dubdubdub.lightwork.co.nz/?p=1 is the url please replace dubdubdub with www thanksthat is the url and its the second image down, the larger image. It works fine in firefox and ie7, but in ie6 (which it needs to work in it is being cutoff as you can see. Any help would REALLY be appreciated. happy to do something in photoshop or whatever in return ![]() Mark |
|
#2
|
|||
|
|||
|
It's blocked for me at my school. Can you post the HTML and CSS for it? I like it side-by-side. Thanks
![]() |
|
#3
|
|||
|
|||
|
Hi,
The image is placed in the left column. In the CSS class "span-15" you have "with:590px;". So the column is actually only 590 pixels wide and thats why IE 6 does not display the right part of it. I would instead of having: <div>Left Column Content</div> <div>Right Column Content</div> ...as you do, I would go: <div style="float:left;"> <div style="float:right;">Right Column Content</div> Left Column Content </div> That should work cross-browser. Example: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test</title>
<style type="text/css">
body {
text-align:center;
}
.container {
margin:0 auto;
width:950px;
text-align:left;
}
.menu {
background:#ccc none;
}
.content {
background:#fcc none;
float:left;
}
.right {
background:#cfc none;
float:right;
width:200px;
}
.footer {
background:#ccf none;
clear:both;
}
</style>
</head>
<body>
<div class="container">
<div class="menu">Menu</div>
<div class="content">
<div class="right">
<p>Right Column</p>
</div>
<p>Left Column</p>
<img src="http://stuff.visualtwist.com/photos/photo_of_day/ninja-see-no.jpg" alt="" />
</div>
<div class="footer">Footer</div>
</div>
</body>
</html>
Hope it helps. /Martin |
|
#4
|
||||
|
||||
|
There seems to be an easier fix than what Martin suggested. Just give the <img> position:relative. For example, this rule would do it:
Code:
div.entry img {
position: relative;
}
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#5
|
|||
|
|||
|
Quote:
Thanks for your replies guys, really appreciated as this is the last part that is holding me back before getting alot of my photography online! I simply put that bit of code into my CSS sheet and it seems to work. You guys ROCK! Hehe, I spent 4 - 5 hours trying allsorts on that. Now I can concentrate on doing what I do best, taking photos, processing them in photoshop and putting them online to display correctly! Once again, a big thankyou ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Image being cut off in IE6 - help/advice please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|