Hi,
I've been working on a new website using the CS6 Fluid Grid Layout. My site is working correctly in Chrome and Firefox but in Internet Explorer 9 and 10, and most likely all other versions, the images that resize normall in Chrome and Firefox stay at maximum size in Internet Explorer. Please could somebody take a look at my site and see where I have gone wrong in the code as I can't find the problem anywhere.
www.moleseyhire.com/index2.html
Kind regards,
Mitchell Ransom
Before tackling layout & x-browser issues, always validate code and fix errors.
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.moleseyhi re.com%2Findex2.html
HTML5 doesn't allow borders, table cell widths, etc.. in your HTML code. Better to put those styles in your CSS.
CSS background gradients are not supported in pre-IE10 browsers. You'll need to add MS proprietary filters for IE.
http://www.colorzilla.com/gradient-editor/
The 4 images across (33% Off - 10% Off) don't resize for me in any browser.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
Hi again,
I have fixed those errors as requested. You can find the results here:
<http://validator.w3.org/check?uri=http%3A%2F%2Fwww.moleseyhire.com%2Fi ndex2.html;verbose=1>
As for the gradients I am already aware of this and have begun implementing the solution from www.css3pie.com as you can see on my content titles.
The site is resizing images perfectly as you can see in the screenshot below, but in IE9 and 10 this is not happening. Any ideas?
Kind regards,
Mitchell Ransom
You could set the <divs> up like:
<div id="special_1"><img src="http://www.moleseyhire.com/images/offer-1.png" alt="33% Off Shampoo"></div>
<div id="special_2"><img src="http://www.moleseyhire.com/images/offer-2.png" alt="Multi Hire"></div>
<div id="special_3"><img src="http://www.moleseyhire.com/images/offer-3.png" alt="Multi Buy"></div>
<div id="special_4"><img src="http://www.moleseyhire.com/images/offer-4.png" alt="10% Off Tile Cutter Accessories"></div>
Then add
#special_1, #special_2, #special_3, #special_4 {
width: 24%;
float: left;
margin-right: 1%;
}
To the following media queries:
@media only screen and (min-width: 769px) and @media only screen and (min-width: 481px)
and:
#special_1, #special_2, #special_3, #special_4 {
width: 49%;
float: left;
margin-right: 1%;
}
to the following media query:
/* Mobile Layout: 480px and below. */
Thanks,
I solved it slightly different but with a similar method to save a bit of coding.
Mobile:
#specials-image-container {
width: 100%;
}
.specials-image {
display: block;
float: left;
max-width: 48%;
margin: 1% 1% 1% 1%;
}
Desktop/Tablet:
.specials-image {
max-width: 23%;
margin: 1% 1% 1% 1%;
}
Thanks again, you've been a great help! Have a great week.
Kind regards,
Mitchell Ransom
Pasted the older code! Updated now.
North America
Europe, Middle East and Africa
Asia Pacific