Styling 3 pictures side by side

I have been reworking (index_new.html) my homepage to try to make it friendier for mobile viewports.
The current homepage: http://www.vintagetextile.com/

Below is the code for the provisional reworked home page as well as the two new style sheets.
For viewports smaller than desktop, e.g., < 900px wide, various sections of the homepage are hidden.
For the small tablet (521-700px), only two pictures are displayed.
For the smartphone <=520px, only one picture is displayed. One obvious probem on the smartphone: the sole picture is not centered. I have tried “text-align:center”.

Here are other issues and questions:

  1. The 3 images are quite large: 800X1170px constrained down to 400X585px and scaled by float-left and float:right. I am using such large .jpgs to get high resolution. Would the experts suggest a different ratio than 4:1 of pixels downloaded pixels to of apparent size?
    I want to stay with 400X585 as that fits the design; the ratio should remain 1.46. But perhaps my basic .jpgs should be a different size from the 800X1170px used?
html {height: 100%; padding-bottom: 1px;	}
body {width: 88%;max-width: 980px;margin: 0 auto; border:0; color:#000; background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;	}

I don’t remember why I originally styled “html”. Any views on those two rules?

Perhaps “width:88%” ,using 12% of viewport for margins, is too large for smaller viewports?


   <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="google-site-verification" content="IVrah1ReyM-Z6ky-CjLafpZi3HsEb8UHdiJkTtEtmog" />
<title>VintageTextile | Vintage Clothing | Vintage Costume</title> 
<meta name="description" content="High style vintage clothing,historic costume,haute couture,designer fashion,decorative textiles (1690-1960) &amp; shawls for the discriminating collector." />
<meta name="keywords" content="vintage clothing,1920s dresses,vintage clothes,high style clothing,vintage dresses,party dress,vintage dresses,vintage couture,vintage evening gowns,historic costume,bridal gowns,flapper dress,shawls,audrey hepburn,vintage textiles" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style_sheets/home_new.css" />
<link rel="stylesheet" type="text/css" href="style_sheets/homemenus.css" />
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body id="home"> 
<div><img src="images/Graphics/logohome.gif" width="269" height="74" id="top" alt="vintageTextile.com" />
<h1>High Style Vintage Clothing<br />&amp;&nbsp;18th Century Costume</h1></div> 
<div class="images" id="bottomBorder"><span><img src="images/1920%27s/c422home.jpg" alt="Fortuny peplos" width="800" height="1170" class="tall picleft" /><img src="images/Edwardian/2762p.jpg" alt="Callot Soeurs" width="800" height="1170" class="tall hpic2" /><img src="images/1920%27s/1336o.jpg" alt="1920s gold dress" width="800" height="1170" class="tall picright hpic1" /></span></div>
 <ul class="nav">
        <li><a href="early.htm">Early</a></li>
        <li><a href="victorian.htm">Victorian</a></li>
        <li><a href="edwardian.htm">Edwardian</a></li>
        <li><a href="1920s_to_1930s.htm">1920s to 1930s</a></li>
    <li><a href="1940s_to_designer.htm">1940s to Designer</a></li>
        <li><a href="shawlstext.htm">Shawls/Textiles</a></li>
        <li><a href="gallery.htm">Gallery</a></li>
        <li><a href="treasure_hunt.htm">Treasure Hunt</a></li>
        <li><a href="searchvt.htm">Search</a></li>
        <li><a href="order.htm">To Order</a></li>
        <li><a href="mailto:Linda@vintagetextile.com">Email</a></li>
        <li class="home"><a href="index.html">Home</a><span>Home</span></li></ul>             
          <div id="format"> 
		  <div id="preface">
		  <p>Vintage Textile is proud...and Shawls/Textiles.</p>
<div class="hide"><p>We have...to the present. </p>
<p>With a background...connoisseurs worldwide.</p>  </div> 
  </div> 
		    <h3><a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook"><img src="images/Graphics/f_logo.jpg" width="50" height="50" alt="facebook logo" /></a>&nbsp;&nbsp;&nbsp;For the latest at VintageTextile.com, please visit our <a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook">Facebook page!</a></h3> 
       <p>Check out our <a class="ct" href="https://www.facebook.com/pages/VintageTextilecom/388978794490710?sk=photos_albums" title="VintageTextile.com Facebook">Facebook albums</a> devoted to <em>Vintage Textile Brides</em> and <em>Belle Epoque</em>, the most recent in a series of albums from the VintageTextile archives.</p>
       <h3><a class="sr" href="searchvt.htm">Search</a> the site.</h3> 
  <p>Click on &quot;Search&quot; or <a class="ct" href="#categ">choose a category</a> at the top of the page to find the perfect vintage gown or accessory. Great design never goes out of style!</p>
  			   <div class="updatetop">Update Schedule</div>
               <p class="largecat"><b>March 20, 2014</b><strong>&#8212;</strong>The Early, Victorian, 1920s-1930s, 1940s-Designer, and Shawls/Textiles sections will be updated.</p>
               <p class="largecat"><b>February 18, 2014</b><strong>&#8212;</strong>The <a href="treasure_hunt.htm">Treasure Hunt</a><a href="1940s_to_designer.htm"></a> section has been updated.</p>
               <p class="largecat"><b>November 11, 2013</b><strong>&#8212;</strong>The <em><a href="brides.htm">Vintage Textile Brides</a></em> article has been updated.</p>
<p class="largecat"><strong>June 8, 2012&#8212;</strong>For valued clients over the years, I have
     been happy to provide to the future bride the gown she will wear on the most important day of her
     life. The updated <a href="brides.htm" class="main">Vintage Textile Brides</a> page shows a selection
     of these gowns as first presented here and then in all their glory at the wedding.</p>
<p class="largecat"><b>December 14, 2009</b>&#8212;The Gallery of sold items has been updated. This photo archive will be an evolving category available for study and enjoyment. Enter <a class="main" href="gallery.htm">The Gallery</a>.</p>
   <p class="largecat">If you would like to be notified when the site is updated, please send your name and email address to <a href="mailto:update@vintagetextile.com" class="main">update@vintagetextile.com</a></p>  
   <div class="hide"><div class="updatetop">Articles</div>
	      <div class="articlesub">
<p>January, 2011&#8212;Enjoy our new section on <a href="brides.htm" class="main">Vintage Textile Brides</a></p>
 <p>December, 2008&#8212;Read our updated article on the <a href="vintage_advantage.htm" class="main">Vintage Advantage </a></p>
 <p>March, 2007&#8212;Read our article on the <a href="little_black_dress.htm" class="main">Little Black Dress</a>.</p>
 <p>December, 2006&#8212;Our article on the <a href="storage%20of%20Vintage%20clothing.htm" class="main">Storage of Vintage Clothing and Textiles</a>.</p>
  <p>To gain an in-depth understanding of the field, please review our comprehensive ongoing
         series of original articles on all aspects of collecting and investing in vintage clothing. </p></div>
       <div class="articlesub">
         <p><a href="articles.htm" class="main"><span class="x12"> Article Page </span></a></p></div> 
  <div id="updatepub">Vintage Textile in print</div>
<div class="book"><img src="images/Graphics/roadshowx.jpg" alt="Antiques Roadshow book" width="204" height="250" class="bookleft" /><img src="images/Graphics/book1x.jpg" alt="Vintage Fashion Price Guide" width="173" height="250" /><img src="images/Graphics/inspirations.jpg" alt="VT tambour pictures" width="200" height="250" class="bookright" /></div>		
<div class="cl"><ul>
      <li><em>Antiques Roadshow Collectibles&#8212;the Complete Guide (2003)</em> by Carol Prisant </li>
     <li><em>Price Guide to Vintage Fashion and Fabrics</em> by Pamela Smith</li>
	<li><em>Inspirations &quot;In Love with Tambour&quot;&#8212;</em>Vintage Textile pictures</li>
          <li><em>Handbag Chic&#8212;200 Years of Designer Fashion</em> by Desire Smith</li>
          <li><em>Virtual Vintage</em> by Linda Lindroth &amp; Deborah Tornello </li>
          <li><em>Victoriana Magazine</em>: article on Storage of Vintage Clothing</li>
          <li><em>The Seductive Shoe</em> by Jonathan Walford</li>
          <li><em>Secret Services&#8212;Your Pocket  Fashion Guide</em> by Cary Whitley</li></ul></div>		
<div class="book"><img src="images/Graphics/handbagchicx.jpg" width="204" height="250" alt="Handbag chic" class="bookleft" /><img src="images/Graphics/virtualvintage.jpg" alt="Virtual Vintage book" width="173" height="250" /><img src="images/Graphics/Victoriana0507.jpg" width="200" height="250" alt="Victoriana Magazine" class="bookright" /></div>	
<div class="book1"><img src="images/Graphics/shoebook.jpg" alt="Seductive Shoe book" width="241" height="250" class="bookleft2" /><img src="images/Graphics/secretservices.jpg" alt="secret services book" width="241" height="250" class="bookright2" /></div>
		  <div id="measure">Measurements and Fit</div>		  
		  <p class="articlesub">Do you need help with how to take your measurements?&nbsp;&nbsp;<a href="new_page_145.htm" class="main">Enter</a></p>
          </div>			        
		<div class="updatetop">Layaways</div>		     
           <p class="articlesub">For information about our Layaway Policy, check the <a href="order.htm" class="main">Order Page</a> for details.</p>      
   <div class="updatetop hide"><a href="links.htm">Links</a></div> 
<p id="s3">Copyright 1999-2014 by Vintage Textile, all rights reserved.</p>
<p id="s2"><a href="privacy.htm">Privacy Policy</a></p>
</div></body>
</html>

home_new.css

html {height: 100%; padding-bottom: 1px;	}
body {width: 88%;max-width: 980px;margin: 0 auto; border:0; color:#000; background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;	}
#top{margin-top:1em}
img {max-width: 100%;border:none;height: auto !important;}
.center img.tall {width: 100%; max-width: 400px; height: auto;}
.images span {	display: inline-block; overflow: hidden;text-align:center}
.images .tall {width:32.4%;max-width:400px; height:auto; vertical-align:top;}
img.tall {width:400px;height:585px;}
img.wide {width:600px;height:500px;}
#bottomBorder {padding-bottom: 0.5em; border-bottom: #fc6 solid 1em;}
.picleft{border:0;float:left;}
.picright{border:0;float:right;}
.bi{font-weight:bold;}
#cat{padding-top:0.2em;font:1.1em Verdana,Tahoma,Helvetica,sans-serif;text-align:center;}
.updatetop{padding:.3em;margin-top:1em;background-color:#F5EBD6;color:Black;font:bold 1.4em 
"Times New Roman",Times,serif;}
#measure{padding:.3em .3em .3em;clear:left;margin-top:1em;background-color:#F5EBD6;color:Black;font:bold 1.4em "Times New Roman",Times,serif;}
h3{display:block;padding:.3em;margin:.4em 0 .6em 0;background-color:#F5EBD6;color:Black;font:1.3em 
"Times New Roman",Times,serif;}
a.sr:link{color:#00f;background-color:#F5EBD6;text-decoration:none;font-size:1.1em;}
a.sr:visited{color:#00f;background-color:#F5EBD6;text-decoration:none;font-size:1.1em;}
#updatepub{padding:.3em;margin:1em 0;background-color:#F5EBD6;color:Black;font:bold 1.4em 
"Times New Roman",Times,serif;}
.x12{font-size:1em;}
.articlesub{font:1.1em Verdana,Tahoma,Helvetica,sans-serif;}
#preface {padding:.3em;	margin-bottom:1.2em; font-size:1.04em;line-height:1.17}
#format{width:80%;word-spacing:-.1em;margin-left:auto; margin-right:auto;}
a:link{color:#000;text-decoration:none;}
a:visited{color:#8B0000;text-decoration:none;}
a:hover{color:red;text-decoration:none;}
a.main:link{color:#D2691E;text-decoration:underline;background-color:#fff;}
a.main:visited{color:#8B0000;text-decoration:underline;background-color:#fff;}
a.main:hover{color:red;text-decoration:underline;background-color:#fff;}
xh1{display:block;float:right;height:74px;width:60%;font:bold 1.1em Verdana,Tahoma,Helvetica,sans-serif;position:relative;left:20%;color:#666666;margin-top:4%;}
h1{display:block;font:bold 1.1em Verdana,Tahoma,Helvetica,sans-serif;color:#666666;
padding:0.2em 12px 0.35em;  margin-bottom:0.5em;margin-top:4%;float:right;}
div.cl ul {list-style-type:none;line-height:1.3;}
div.cl{clear:both;margin-top:.4em;}
#s3{font-size:.8em;font-weight:bold;text-align:center;}
#s2{font-size:.72em;text-align:center;}
.book{margin-left:auto;margin-right:auto;}
.book img{border:0;vertical-align:bottom;}
.bookleft{border:0;margin-right:6%;}
.bookright{border:0;margin-left:6%;}
.book1{margin-top:1.8em;}
.book1 img{border:0;vertical-align:bottom;}
.bookleft2{border:0;margin-right:3%;margin-left:9%;}
.bookright2{border:0;margin-left:3%;}
p.largecat a#burn {color:#00f;background-color:#fff;text-decoration:underline}
a.ct:link{color:#00f;text-decoration:none;background-color:#fff;}
a.ct:visited{color:#8B0000;text-decoration:none;background-color:#fff;}
a.ct:hover{color:red;text-decoration:none;background-color:#fff;}
@media only screen and (max-width:900px) 
{.hide{display:none;}}
@media only screen and (max-width:700px)
      {.hpic1{display:none;} 
	  .images .tall {width:48%;max-width:400px; height:auto; vertical-align:top;} }	  
@media only screen and (max-width:520px)
 {  .hpic2{display:none;}
   .images .tall {width: 70%;max-width:400px; height:auto; vertical-align:top; }     }  

homemenus.css

.nav {list-style:none;
    display:table;
    width:100%;
    text-align:center;
    word-spacing:-1em;
    padding:0;
    margin:0;}
.nav{padding-bottom:3px;}
.nav li { display:inline-block;
    word-spacing:0;}
.nav li:before { content:":";
    display:inline-block;
    padding:0 1px;}
.nav li:first-child:before { content:"";
    padding:0;}	
.nav a,
.nav span {    display:inline-block;
    text-decoration:none;
    padding:.1875em .4375em;}
	
.nav a:link,
.nav a:visited {color:#8b0000;}
.nav a:hover { color:#8b0000;
    background-color:#f5ebd6;
    text-decoration:underline;}	
.nav a:active {color:#f00;}
.nav span {    display:none;
    color:#000;
    background-color:#f5ebd6;}
#home .home a {display:none;}	
#home .home span { display:inline-block;}

You may have already tried this for the smartphone image centering, but I didn’t see margin:0 auto; in there. Which picture did you want to center? The 3 dresses (the main image I see)? I also don’t think the div with the class .images is serving well as a container. Maybe it’s worth adding an ID to the present div around that image and center that with margin:0 auto;.

etidd:
Thanks for the suggestion. Although it did not work, it got me to thinking as to why the the pink left-most picture–the only one displayed for the smartphone–was floating left.
Here is why:

  .picleft{border:0;float:left;}
.picright{border:0;float:right;} 

For desktop, large tablet, and small tablet, those two styles properly format the 3 or 2 pictures displayed in the floating design. But when only the leftmost picture is displayed for the smartphone, it is still floated left. So I came up with this:

@media only screen and (max-width:520px)
 {  .hpic2{display:none;}
   .images .tall {width: 70%;max-width:400px; height:auto; vertical-align:top;float:none; }}

This works since the single pink left most image is no longer floated left for the smart phone. Although this solution works, it seems to me to be a very bad solution, because it also no longer floats the right most image, which should be floated right. However, that does not matter on the smartphone viewport as only the left most image is display.

I don’t quite follow why it is bad as you have removed the right image at the same time as you centre the single image anyway so it makes no difference? Or did I miss something?

Hi Paul,
I guess you are right as I accomplished my goal. I just thought there might be a more direct way of doing it, but that is nitpicking. What did you think of the other styles, e.g., in the <body> tag.

I don’t like the 88% width in the body as that leaves a 12% gutter which cramps the space at smaller screens. I would prefer no width on the body so that the page can go edge to edge when 980px is reached. If you wanted a gutter then you could just add a little padding to the body via a media query at 990px and then remove it totally at smaller screen sizes.

Paul, I totally agree with you about the 88% width. I don’t want to go edge-to-edge on the desktop viewport as then the lines of type are too long. If there were no negative side effects, I would have something like 90% width on the desktop–that can be done without any problem–92% on the large tablet, 94% on the small tablet, and 96% on the smartphone. Does that make sense?

My problem has been that when I set body width to, say, 94% for the smart phone, the single image drifts to the left and is no longer centered.

However, even if I set the width for smartphone to 100%, the actual width does not seem to change; I don’t know why, but I suspect the bottom border of the spanned images.

<div class="images" id="bottomBorder"><span><img src="images/1920%27s/c422home.jpg" alt="Fortuny peplos" width="800" height="1170" class="tall picleft cent" /><img src="images/Edwardian/2762p.jpg" alt="Callot Soeurs" width="800" height="1170" class="tall hpic2" /><img src="images/1920%27s/1336o.jpg" alt="1920s gold dress" width="800" height="1170" class="tall picright hpic1" /></span></div>
@media only screen and (max-width:520px)
 {  .hpic2{display:none;}  .cent{width:auto;}
   .images .tall {width: 60%;max-width:400px; height:auto; vertical-align:top;float:none; }}

The .cent style does seem to help in keeping the sole imaged centered.

Do you have a live demo of the revised site so we can see the changes you have made? Otherwise post your whole revised code to save us trying to build it all up again.

I would get rid of the body wdith and just use padding like this:


<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="google-site-verification" content="IVrah1ReyM-Z6ky-CjLafpZi3HsEb8UHdiJkTtEtmog" />
<title>VintageTextile | Vintage Clothing | Vintage Costume</title>
<meta name="description" content="High style vintage clothing,historic costume,haute couture,designer fashion,decorative textiles (1690-1960) &amp; shawls for the discriminating collector." />
<meta name="keywords" content="vintage clothing,1920s dresses,vintage clothes,high style clothing,vintage dresses,party dress,vintage dresses,vintage couture,vintage evening gowns,historic costume,bridal gowns,flapper dress,shawls,audrey hepburn,vintage textiles" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style_sheets/home_new.css" />
<link rel="stylesheet" type="text/css" href="style_sheets/homemenus.css" />
<style>
html {
	overflow-y:scroll;
}
body {
	max-width: 980px;
	margin: 0 auto;
	border:0;
	color:#000;
	background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;
}
#top { margin-top:1em }
img {
	max-width: 100%;
	border:none;
	height: auto !important;
}
.center img.tall {
	width: 100%;
	max-width: 400px;
	height: auto;
}
.images span {
	display: inline-block;
	overflow: hidden;
	text-align:center
}
.images .tall {
	width:32.4%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
img.tall {
	width:400px;
	height:585px;
}
img.wide {
	width:600px;
	height:500px;
}
#bottomBorder {
	padding-bottom: 0.5em;
	border-bottom: #fc6 solid 1em;
}
.picleft {
	border:0;
	float:left;
}
.picright {
	border:0;
	float:right;
}
.bi { font-weight:bold; }
#cat {
	padding-top:0.2em;
	font:1.1em Verdana, Tahoma, Helvetica, sans-serif;
	text-align:center;
}
.updatetop {
	padding:.3em;
	margin-top:1em;
	background-color:#F5EBD6;
	color:Black;
	font:bold 1.4em "Times New Roman", Times, serif;
}
#measure {
	padding:.3em .3em .3em;
	clear:left;
	margin-top:1em;
	background-color:#F5EBD6;
	color:Black;
	font:bold 1.4em "Times New Roman", Times, serif;
}
h3 {
	display:block;
	padding:.3em;
	margin:.4em 0 .6em 0;
	background-color:#F5EBD6;
	color:Black;
	font:1.3em "Times New Roman", Times, serif;
}
a.sr:link {
	color:#00f;
	background-color:#F5EBD6;
	text-decoration:none;
	font-size:1.1em;
}
a.sr:visited {
	color:#00f;
	background-color:#F5EBD6;
	text-decoration:none;
	font-size:1.1em;
}
#updatepub {
	padding:.3em;
	margin:1em 0;
	background-color:#F5EBD6;
	color:Black;
	font:bold 1.4em "Times New Roman", Times, serif;
}
.x12 { font-size:1em; }
.articlesub { font:1.1em Verdana, Tahoma, Helvetica, sans-serif; }
#preface {
	padding:.3em;
	margin-bottom:1.2em;
	font-size:1.04em;
	line-height:1.17
}
#format {
	width:80%;
	word-spacing:-.1em;
	margin-left:auto;
	margin-right:auto;
}
a:link {
	color:#000;
	text-decoration:none;
}
a:visited {
	color:#8B0000;
	text-decoration:none;
}
a:hover {
	color:red;
	text-decoration:none;
}
a.main:link {
	color:#D2691E;
	text-decoration:underline;
	background-color:#fff;
}
a.main:visited {
	color:#8B0000;
	text-decoration:underline;
	background-color:#fff;
}
a.main:hover {
	color:red;
	text-decoration:underline;
	background-color:#fff;
}
xh1 {
	display:block;
	float:right;
	height:74px;
	width:60%;
	font:bold 1.1em Verdana, Tahoma, Helvetica, sans-serif;
	position:relative;
	left:20%;
	color:#666666;
	margin-top:4%;
}
h1 {
	display:block;
	font:bold 1.1em Verdana, Tahoma, Helvetica, sans-serif;
	color:#666666;
	padding:0.2em 12px 0.35em;
	margin-bottom:0.5em;
	margin-top:4%;
	float:right;
}
div.cl ul {
	list-style-type:none;
	line-height:1.3;
}
div.cl {
	clear:both;
	margin-top:.4em;
}
#s3 {
	font-size:.8em;
	font-weight:bold;
	text-align:center;
}
#s2 {
	font-size:.72em;
	text-align:center;
}
.book {
	margin-left:auto;
	margin-right:auto;
}
.book img {
	border:0;
	vertical-align:bottom;
}
.bookleft {
	border:0;
	margin-right:6%;
}
.bookright {
	border:0;
	margin-left:6%;
}
.book1 { margin-top:1.8em; }
.book1 img {
	border:0;
	vertical-align:bottom;
}
.bookleft2 {
	border:0;
	margin-right:3%;
	margin-left:9%;
}
.bookright2 {
	border:0;
	margin-left:3%;
}
p.largecat a#burn {
	color:#00f;
	background-color:#fff;
	text-decoration:underline
}
a.ct:link {
	color:#00f;
	text-decoration:none;
	background-color:#fff;
}
a.ct:visited {
	color:#8B0000;
	text-decoration:none;
	background-color:#fff;
}
a.ct:hover {
	color:red;
	text-decoration:none;
	background-color:#fff;
}
@media only screen and (max-width:1030px) {
body{padding:0 25px}
}

@media only screen and (max-width:900px) {
.hide { display:none; }
}
@media only screen and (max-width:700px) {
body{padding:0 15px}
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
}
@media only screen and (max-width:520px) {
body{padding:0 5px}
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
}
@media only screen and (max-width:520px) {
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	float:none;
}
}
</style>
<style>
.nav {list-style:none;
    display:table;
    width:100%;
    text-align:center;
    word-spacing:-1em;
    padding:0;
    margin:0;}
.nav{padding-bottom:3px;}
.nav li { display:inline-block;
    word-spacing:0;}
.nav li:before { content:":";
    display:inline-block;
    padding:0 1px;}
.nav li:first-child:before { content:"";
    padding:0;}	
.nav a,
.nav span {    display:inline-block;
    text-decoration:none;
    padding:.1875em .4375em;}
	
.nav a:link,
.nav a:visited {color:#8b0000;}
.nav a:hover { color:#8b0000;
    background-color:#f5ebd6;
    text-decoration:underline;}	
.nav a:active {color:#f00;}
.nav span {    display:none;
    color:#000;
    background-color:#f5ebd6;}
#home .home a {display:none;}	
#home .home span { display:inline-block;}

</style>

<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body id="home">
<div><img src="http://www.vintagetextile.com/images/Graphics/logohome.gif" width="269" height="74" id="top" alt="vintageTextile.com" />
		<h1>High Style Vintage Clothing<br />
				&amp;&nbsp;18th Century Costume</h1>
</div>
<div class="images" id="bottomBorder"><span><img src="http://www.vintagetextile.com/images/1920%27s/c422home.jpg" alt="Fortuny peplos" width="800" height="1170" class="tall picleft" /><img src="http://www.vintagetextile.com/images/Edwardian/2762p.jpg" alt="Callot Soeurs" width="800" height="1170" class="tall hpic2" /><img src="http://www.vintagetextile.com/images/1920%27s/1336o.jpg" alt="1920s gold dress" width="800" height="1170" class="tall picright hpic1" /></span></div>
<ul class="nav">
		<li><a href="early.htm">Early</a></li>
		<li><a href="victorian.htm">Victorian</a></li>
		<li><a href="edwardian.htm">Edwardian</a></li>
		<li><a href="1920s_to_1930s.htm">1920s to 1930s</a></li>
		<li><a href="1940s_to_designer.htm">1940s to Designer</a></li>
		<li><a href="shawlstext.htm">Shawls/Textiles</a></li>
		<li><a href="gallery.htm">Gallery</a></li>
		<li><a href="treasure_hunt.htm">Treasure Hunt</a></li>
		<li><a href="searchvt.htm">Search</a></li>
		<li><a href="order.htm">To Order</a></li>
		<li><a href="mailto:Linda@vintagetextile.com">Email</a></li>
		<li class="home"><a href="index.html">Home</a><span>Home</span></li>
</ul>
<div id="format">
		<div id="preface">
				<p>Vintage Textile is proud...and Shawls/Textiles.</p>
				<div class="hide">
						<p>We have...to the present. </p>
						<p>With a background...connoisseurs worldwide.</p>
				</div>
		</div>
		<h3><a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook"><img src="http://www.vintagetextile.com/images/Graphics/f_logo.jpg" width="50" height="50" alt="facebook logo" /></a>&nbsp;&nbsp;&nbsp;For the latest at VintageTextile.com, please visit our <a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook">Facebook page!</a></h3>
		<p>Check out our <a class="ct" href="https://www.facebook.com/pages/VintageTextilecom/388978794490710?sk=photos_albums" title="VintageTextile.com Facebook">Facebook albums</a> devoted to <em>Vintage Textile Brides</em> and <em>Belle Epoque</em>, the most recent in a series of albums from the VintageTextile archives.</p>
		<h3><a class="sr" href="searchvt.htm">Search</a> the site.</h3>
		<p>Click on &quot;Search&quot; or <a class="ct" href="#categ">choose a category</a> at the top of the page to find the perfect vintage gown or accessory. Great design never goes out of style!</p>
		<div class="updatetop">Update Schedule</div>
		<p class="largecat"><b>March 20, 2014</b><strong>&#8212;</strong>The Early, Victorian, 1920s-1930s, 1940s-Designer, and Shawls/Textiles sections will be updated.</p>
		<p class="largecat"><b>February 18, 2014</b><strong>&#8212;</strong>The <a href="treasure_hunt.htm">Treasure Hunt</a><a href="1940s_to_designer.htm"></a> section has been updated.</p>
		<p class="largecat"><b>November 11, 2013</b><strong>&#8212;</strong>The <em><a href="brides.htm">Vintage Textile Brides</a></em> article has been updated.</p>
		<p class="largecat"><strong>June 8, 2012&#8212;</strong>For valued clients over the years, I have
				been happy to provide to the future bride the gown she will wear on the most important day of her
				life. The updated <a href="brides.htm" class="main">Vintage Textile Brides</a> page shows a selection
				of these gowns as first presented here and then in all their glory at the wedding.</p>
		<p class="largecat"><b>December 14, 2009</b>&#8212;The Gallery of sold items has been updated. This photo archive will be an evolving category available for study and enjoyment. Enter <a class="main" href="gallery.htm">The Gallery</a>.</p>
		<p class="largecat">If you would like to be notified when the site is updated, please send your name and email address to <a href="mailto:update@vintagetextile.com" class="main">update@vintagetextile.com</a></p>
		<div class="hide">
				<div class="updatetop">Articles</div>
				<div class="articlesub">
						<p>January, 2011&#8212;Enjoy our new section on <a href="brides.htm" class="main">Vintage Textile Brides</a></p>
						<p>December, 2008&#8212;Read our updated article on the <a href="vintage_advantage.htm" class="main">Vintage Advantage </a></p>
						<p>March, 2007&#8212;Read our article on the <a href="little_black_dress.htm" class="main">Little Black Dress</a>.</p>
						<p>December, 2006&#8212;Our article on the <a href="storage%20of%20Vintage%20clothing.htm" class="main">Storage of Vintage Clothing and Textiles</a>.</p>
						<p>To gain an in-depth understanding of the field, please review our comprehensive ongoing
								series of original articles on all aspects of collecting and investing in vintage clothing. </p>
				</div>
				<div class="articlesub">
						<p><a href="articles.htm" class="main"><span class="x12"> Article Page </span></a></p>
				</div>
				<div id="updatepub">Vintage Textile in print</div>
				<div class="book"><img src="http://www.vintagetextile.com/images/Graphics/roadshowx.jpg" alt="Antiques Roadshow book" width="204" height="250" class="bookleft" /><img src="http://www.vintagetextile.com/images/Graphics/book1x.jpg" alt="Vintage Fashion Price Guide" width="173" height="250" /><img src="http://www.vintagetextile.com/images/Graphics/inspirations.jpg" alt="VT tambour pictures" width="200" height="250" class="bookright" /></div>
				<div class="cl">
						<ul>
								<li><em>Antiques Roadshow Collectibles&#8212;the Complete Guide (2003)</em> by Carol Prisant </li>
								<li><em>Price Guide to Vintage Fashion and Fabrics</em> by Pamela Smith</li>
								<li><em>Inspirations &quot;In Love with Tambour&quot;&#8212;</em>Vintage Textile pictures</li>
								<li><em>Handbag Chic&#8212;200 Years of Designer Fashion</em> by Desire Smith</li>
								<li><em>Virtual Vintage</em> by Linda Lindroth &amp; Deborah Tornello </li>
								<li><em>Victoriana Magazine</em>: article on Storage of Vintage Clothing</li>
								<li><em>The Seductive Shoe</em> by Jonathan Walford</li>
								<li><em>Secret Services&#8212;Your Pocket  Fashion Guide</em> by Cary Whitley</li>
						</ul>
				</div>
				<div class="book"><img src="http://www.vintagetextile.com/images/Graphics/handbagchicx.jpg" width="204" height="250" alt="Handbag chic" class="bookleft" /><img src="http://www.vintagetextile.com/images/Graphics/virtualvintage.jpg" alt="Virtual Vintage book" width="173" height="250" /><img src="http://www.vintagetextile.com/images/Graphics/Victoriana0507.jpg" width="200" height="250" alt="Victoriana Magazine" class="bookright" /></div>
				<div class="book1"><img src="http://www.vintagetextile.com/images/Graphics/shoebook.jpg" alt="Seductive Shoe book" width="241" height="250" class="bookleft2" /><img src="http://www.vintagetextile.com/images/Graphics/secretservices.jpg" alt="secret services book" width="241" height="250" class="bookright2" /></div>
				<div id="measure">Measurements and Fit</div>
				<p class="articlesub">Do you need help with how to take your measurements?&nbsp;&nbsp;<a href="new_page_145.htm" class="main">Enter</a></p>
		</div>
		<div class="updatetop">Layaways</div>
		<p class="articlesub">For information about our Layaway Policy, check the <a href="order.htm" class="main">Order Page</a> for details.</p>
		<div class="updatetop hide"><a href="links.htm">Links</a></div>
		<p id="s3">Copyright 1999-2014 by Vintage Textile, all rights reserved.</p>
		<p id="s2"><a href="privacy.htm">Privacy Policy</a></p>
</div>
</body>
</html>


The padding is reduced in the media queries and gives a nicer experience I think.

Paul,
I have taken to heart your basic concept of providing more available width for the smaller media. I have left the desktop styling the same because of the line-length issue I mention.
See: http://www.vintagetextile.com/index_new.html
For the three smaller viewports, I have this styling:

@media only screen and (max-width:900px)
{.hide{display:none;}
 body{width:92%}    #format{width:90%;}
 }
@media only screen and (max-width:700px)
      {.hpic1{display:none;}
	  .images .tall {width:48%;max-width:400px; height:auto; vertical-align:top;} }	
@media only screen and (max-width:520px)
 {  .hpic2{display:none;}  .cent{width:auto;}
  body{width:96%}
   .images .tall {width: 60%;max-width:400px; height:auto; vertical-align:top;float:none; }}

Body margins have been reduced from 6% on each side to 4% on each side. The key .preface style that sets the width of the non-hidden first paragraph has been reduced from an additional 10% on each side within the body to an additional 5% on each side.
I like that look–with one huge problem–of the three smaller viewports now: large tablet (701px-900px);
small tablet (521px-700px); and smartphone (less than 520px).
The big problem I am hoping you can solve is that when the screen is narrowed to 520px, in addition to having the desired one picture instead of two, that picture is not centered but is closer to the left side, despite my .cent style. As you continue to narrow the screen, then that sole picture appears centered.
BTW, do you think my cutoff point between smartphone and small tablet (520px) is too high: should it be a lower number?

In your suggested changes:

html {
	overflow-y:scroll;
}
body {
	max-width: 980px;
	margin: 0 auto;
	border:0;
	color:#000;
	background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;}
html {height: 100%; padding-bottom: 1px;	}


I did not see any padding in the body tag.
Also, what does your change in my html element styling do?
Thank you for your expertise!

Paul,
I will be trying out your concept tomorrow and let you know.
Thank you.

I would change the rule to this:


[B].images { text-align:center }[/B]
@media only screen and (max-width: 700px) {
	.images .tall {
		width: 48%;
		max-width: 400px;
		height: auto;
		vertical-align: top;
		[B]float: none;
		margin: 0 4px;[/B]
}
}

The text-align on the parent (.images) will centre the images and the margin gives a little space. That works for the 2 images and the single image.

BTW, do you think my cutoff point between smartphone and small tablet (520px) is too high: should it be a lower number?

I take a device agnostic approach (as there were over a 100 different devices I believe at the last count and you can’t remember what all the widths are). Just insert breakpoints at the point in the design where it looks like to should change; don’t worry about device widths as such and then you will collect them all on the way. If you design for certain breakpoints then that breakpoint may not be a suitable point for your design to change. The design should come first and the breakpoints will vary on what the design is.

In your suggested changes:

html {
	overflow-y:scroll;
}
body {
	max-width: 980px;
	margin: 0 auto;
	border:0;
	color:#000;
	background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;}
html {height: 100%; padding-bottom: 1px;	}


I did not see any padding in the body tag.

It was here:


@media only screen and (max-width:1030px) {
[B]body{padding:0 25px}[/B]
}

@media only screen and (max-width:900px) {
.hide { display:none; }
}
@media only screen and (max-width:700px) {
[B]body{padding:0 15px}[/B]
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
}
@media only screen and (max-width:520px) {
[B]body{padding:0 5px}
[/B].hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
}

Also, what does your change in my html element styling do?
Thank you for your expertise!

You set height:100% plus 1px padding which means the viewport height is now 100% + 1px tall and will incur the vertical scrollbar even though it doesn’t need it on some pages. I assume you did that because you wanted the scrollbar visible at all times and a better way is to use overflow-y:scroll instead which will put the scrollbar in place but leave it greyed out until required. :slight_smile:

Paul,
I already made two of your changes and both work very well:

html {overflow-y:scroll;}

@media only screen and (max-width: 700px)
	  {.images { text-align:center }
	.images .tall {
		width: 48%;
		max-width: 400px;
		height: auto;
		vertical-align: top;
		float: none;
		margin: 0 4px;}}

Before making this last change, on very close examination I found that images were not centered in both smartphone and small tablet viewports. Your change in styling fixed both problems!

“Just insert breakpoints at the point in the design where it looks like it should change.”

I understand your concept and will work it through tomorrow. However, when I narrow the screen in FF to the point where the design calls for a breakpoint, how do I measure the # of pixels horizontally, or is there a formula for converting inches or cm. to pixels?

Now I have changed over to your body padding instead of the body width. It seems to work pretty well in FF but not in IE, where the smartphone viewport shows 2 images and not side-by-side.
I am using these @media styles currently:

@media only screen and (max-width:1030px) {
body{padding:0 45px}}

@media only screen and (max-width:900px) {
.hide { display:none; }}

@media only screen and (max-width:700px) {
body{padding:0 15px}
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	margin:0 4px;}

@media only screen and (max-width:465px) {
body{padding:0 5px}
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	float:none;}

Wherever I have tried to place

.images{text-align:center}

it breaks the design.

HI,

I;m not seeing a problem when I add it to my previous code.


<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="google-site-verification" content="IVrah1ReyM-Z6ky-CjLafpZi3HsEb8UHdiJkTtEtmog" />
<title>VintageTextile | Vintage Clothing | Vintage Costume</title>
<meta name="description" content="High style vintage clothing,historic costume,haute couture,designer fashion,decorative textiles (1690-1960) &amp; shawls for the discriminating collector." />
<meta name="keywords" content="vintage clothing,1920s dresses,vintage clothes,high style clothing,vintage dresses,party dress,vintage dresses,vintage couture,vintage evening gowns,historic costume,bridal gowns,flapper dress,shawls,audrey hepburn,vintage textiles" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style_sheets/home_new.css" />
<link rel="stylesheet" type="text/css" href="style_sheets/homemenus.css" />
<style>
html {
	overflow-y:scroll;
}
body {
	max-width: 980px;
	margin: 0 auto;
	border:0;
	color:#000;
	background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;
}
#top { margin-top:1em }
img {
	max-width: 100%;
	border:none;
	height: auto !important;
}
.center img.tall {
	width: 100%;
	max-width: 400px;
	height: auto;
}
.images span {
	display: inline-block;
	overflow: hidden;
	text-align:center
}
.images .tall {
	width:32.4%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
img.tall {
	width:400px;
	height:585px;
}
img.wide {
	width:600px;
	height:500px;
}
#bottomBorder {
	padding-bottom: 0.5em;
	border-bottom: #fc6 solid 1em;
}
.picleft {
	border:0;
	float:left;
}
.picright {
	border:0;
	float:right;
}
.bi { font-weight:bold; }
#cat {
	padding-top:0.2em;
	font:1.1em Verdana, Tahoma, Helvetica, sans-serif;
	text-align:center;
}
.updatetop {
	padding:.3em;
	margin-top:1em;
	background-color:#F5EBD6;
	color:Black;
	font:bold 1.4em "Times New Roman", Times, serif;
}
#measure {
	padding:.3em .3em .3em;
	clear:left;
	margin-top:1em;
	background-color:#F5EBD6;
	color:Black;
	font:bold 1.4em "Times New Roman", Times, serif;
}
h3 {
	display:block;
	padding:.3em;
	margin:.4em 0 .6em 0;
	background-color:#F5EBD6;
	color:Black;
	font:1.3em "Times New Roman", Times, serif;
}
a.sr:link {
	color:#00f;
	background-color:#F5EBD6;
	text-decoration:none;
	font-size:1.1em;
}
a.sr:visited {
	color:#00f;
	background-color:#F5EBD6;
	text-decoration:none;
	font-size:1.1em;
}
#updatepub {
	padding:.3em;
	margin:1em 0;
	background-color:#F5EBD6;
	color:Black;
	font:bold 1.4em "Times New Roman", Times, serif;
}
.x12 { font-size:1em; }
.articlesub { font:1.1em Verdana, Tahoma, Helvetica, sans-serif; }
#preface {
	padding:.3em;
	margin-bottom:1.2em;
	font-size:1.04em;
	line-height:1.17
}
#format {
	width:80%;
	word-spacing:-.1em;
	margin-left:auto;
	margin-right:auto;
}
a:link {
	color:#000;
	text-decoration:none;
}
a:visited {
	color:#8B0000;
	text-decoration:none;
}
a:hover {
	color:red;
	text-decoration:none;
}
a.main:link {
	color:#D2691E;
	text-decoration:underline;
	background-color:#fff;
}
a.main:visited {
	color:#8B0000;
	text-decoration:underline;
	background-color:#fff;
}
a.main:hover {
	color:red;
	text-decoration:underline;
	background-color:#fff;
}
xh1 {
	display:block;
	float:right;
	height:74px;
	width:60%;
	font:bold 1.1em Verdana, Tahoma, Helvetica, sans-serif;
	position:relative;
	left:20%;
	color:#666666;
	margin-top:4%;
}
h1 {
	display:block;
	font:bold 1.1em Verdana, Tahoma, Helvetica, sans-serif;
	color:#666666;
	padding:0.2em 12px 0.35em;
	margin-bottom:0.5em;
	margin-top:4%;
	float:right;
}
div.cl ul {
	list-style-type:none;
	line-height:1.3;
}
div.cl {
	clear:both;
	margin-top:.4em;
}
#s3 {
	font-size:.8em;
	font-weight:bold;
	text-align:center;
}
#s2 {
	font-size:.72em;
	text-align:center;
}
.book {
	margin-left:auto;
	margin-right:auto;
}
.book img {
	border:0;
	vertical-align:bottom;
}
.bookleft {
	border:0;
	margin-right:6%;
}
.bookright {
	border:0;
	margin-left:6%;
}
.book1 { margin-top:1.8em; }
.book1 img {
	border:0;
	vertical-align:bottom;
}
.bookleft2 {
	border:0;
	margin-right:3%;
	margin-left:9%;
}
.bookright2 {
	border:0;
	margin-left:3%;
}
p.largecat a#burn {
	color:#00f;
	background-color:#fff;
	text-decoration:underline
}
a.ct:link {
	color:#00f;
	text-decoration:none;
	background-color:#fff;
}
a.ct:visited {
	color:#8B0000;
	text-decoration:none;
	background-color:#fff;
}
a.ct:hover {
	color:red;
	text-decoration:none;
	background-color:#fff;
}
@media only screen and (max-width:1030px) {
body{padding:0 25px}
}

@media only screen and (max-width:900px) {
.hide { display:none; }
}
.images { text-align:center }
@media only screen and (max-width:700px) {
body{padding:0 15px}
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	float: none;
		margin: 0 4px;
}
}
@media only screen and (max-width:520px) {
body{padding:0 5px}
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
}
}
@media only screen and (max-width:520px) {
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	float:none;
}
}
</style>
<style>
.nav {list-style:none;
    display:table;
    width:100%;
    text-align:center;
    word-spacing:-1em;
    padding:0;
    margin:0;}
.nav{padding-bottom:3px;}
.nav li { display:inline-block;
    word-spacing:0;}
.nav li:before { content:":";
    display:inline-block;
    padding:0 1px;}
.nav li:first-child:before { content:"";
    padding:0;}	
.nav a,
.nav span {    display:inline-block;
    text-decoration:none;
    padding:.1875em .4375em;}
	
.nav a:link,
.nav a:visited {color:#8b0000;}
.nav a:hover { color:#8b0000;
    background-color:#f5ebd6;
    text-decoration:underline;}	
.nav a:active {color:#f00;}
.nav span {    display:none;
    color:#000;
    background-color:#f5ebd6;}
#home .home a {display:none;}	
#home .home span { display:inline-block;}

</style>

<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body id="home">
<div><img src="http://www.vintagetextile.com/images/Graphics/logohome.gif" width="269" height="74" id="top" alt="vintageTextile.com" />
		<h1>High Style Vintage Clothing<br />
				&amp;&nbsp;18th Century Costume</h1>
</div>
<div class="images" id="bottomBorder"><span><img src="http://www.vintagetextile.com/images/1920%27s/c422home.jpg" alt="Fortuny peplos" width="800" height="1170" class="tall picleft" /><img src="http://www.vintagetextile.com/images/Edwardian/2762p.jpg" alt="Callot Soeurs" width="800" height="1170" class="tall hpic2" /><img src="http://www.vintagetextile.com/images/1920%27s/1336o.jpg" alt="1920s gold dress" width="800" height="1170" class="tall picright hpic1" /></span></div>
<ul class="nav">
		<li><a href="early.htm">Early</a></li>
		<li><a href="victorian.htm">Victorian</a></li>
		<li><a href="edwardian.htm">Edwardian</a></li>
		<li><a href="1920s_to_1930s.htm">1920s to 1930s</a></li>
		<li><a href="1940s_to_designer.htm">1940s to Designer</a></li>
		<li><a href="shawlstext.htm">Shawls/Textiles</a></li>
		<li><a href="gallery.htm">Gallery</a></li>
		<li><a href="treasure_hunt.htm">Treasure Hunt</a></li>
		<li><a href="searchvt.htm">Search</a></li>
		<li><a href="order.htm">To Order</a></li>
		<li><a href="mailto:Linda@vintagetextile.com">Email</a></li>
		<li class="home"><a href="index.html">Home</a><span>Home</span></li>
</ul>
<div id="format">
		<div id="preface">
				<p>Vintage Textile is proud...and Shawls/Textiles.</p>
				<div class="hide">
						<p>We have...to the present. </p>
						<p>With a background...connoisseurs worldwide.</p>
				</div>
		</div>
		<h3><a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook"><img src="http://www.vintagetextile.com/images/Graphics/f_logo.jpg" width="50" height="50" alt="facebook logo" /></a>&nbsp;&nbsp;&nbsp;For the latest at VintageTextile.com, please visit our <a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook">Facebook page!</a></h3>
		<p>Check out our <a class="ct" href="https://www.facebook.com/pages/VintageTextilecom/388978794490710?sk=photos_albums" title="VintageTextile.com Facebook">Facebook albums</a> devoted to <em>Vintage Textile Brides</em> and <em>Belle Epoque</em>, the most recent in a series of albums from the VintageTextile archives.</p>
		<h3><a class="sr" href="searchvt.htm">Search</a> the site.</h3>
		<p>Click on &quot;Search&quot; or <a class="ct" href="#categ">choose a category</a> at the top of the page to find the perfect vintage gown or accessory. Great design never goes out of style!</p>
		<div class="updatetop">Update Schedule</div>
		<p class="largecat"><b>March 20, 2014</b><strong>&#8212;</strong>The Early, Victorian, 1920s-1930s, 1940s-Designer, and Shawls/Textiles sections will be updated.</p>
		<p class="largecat"><b>February 18, 2014</b><strong>&#8212;</strong>The <a href="treasure_hunt.htm">Treasure Hunt</a><a href="1940s_to_designer.htm"></a> section has been updated.</p>
		<p class="largecat"><b>November 11, 2013</b><strong>&#8212;</strong>The <em><a href="brides.htm">Vintage Textile Brides</a></em> article has been updated.</p>
		<p class="largecat"><strong>June 8, 2012&#8212;</strong>For valued clients over the years, I have
				been happy to provide to the future bride the gown she will wear on the most important day of her
				life. The updated <a href="brides.htm" class="main">Vintage Textile Brides</a> page shows a selection
				of these gowns as first presented here and then in all their glory at the wedding.</p>
		<p class="largecat"><b>December 14, 2009</b>&#8212;The Gallery of sold items has been updated. This photo archive will be an evolving category available for study and enjoyment. Enter <a class="main" href="gallery.htm">The Gallery</a>.</p>
		<p class="largecat">If you would like to be notified when the site is updated, please send your name and email address to <a href="mailto:update@vintagetextile.com" class="main">update@vintagetextile.com</a></p>
		<div class="hide">
				<div class="updatetop">Articles</div>
				<div class="articlesub">
						<p>January, 2011&#8212;Enjoy our new section on <a href="brides.htm" class="main">Vintage Textile Brides</a></p>
						<p>December, 2008&#8212;Read our updated article on the <a href="vintage_advantage.htm" class="main">Vintage Advantage </a></p>
						<p>March, 2007&#8212;Read our article on the <a href="little_black_dress.htm" class="main">Little Black Dress</a>.</p>
						<p>December, 2006&#8212;Our article on the <a href="storage%20of%20Vintage%20clothing.htm" class="main">Storage of Vintage Clothing and Textiles</a>.</p>
						<p>To gain an in-depth understanding of the field, please review our comprehensive ongoing
								series of original articles on all aspects of collecting and investing in vintage clothing. </p>
				</div>
				<div class="articlesub">
						<p><a href="articles.htm" class="main"><span class="x12"> Article Page </span></a></p>
				</div>
				<div id="updatepub">Vintage Textile in print</div>
				<div class="book"><img src="http://www.vintagetextile.com/images/Graphics/roadshowx.jpg" alt="Antiques Roadshow book" width="204" height="250" class="bookleft" /><img src="http://www.vintagetextile.com/images/Graphics/book1x.jpg" alt="Vintage Fashion Price Guide" width="173" height="250" /><img src="http://www.vintagetextile.com/images/Graphics/inspirations.jpg" alt="VT tambour pictures" width="200" height="250" class="bookright" /></div>
				<div class="cl">
						<ul>
								<li><em>Antiques Roadshow Collectibles&#8212;the Complete Guide (2003)</em> by Carol Prisant </li>
								<li><em>Price Guide to Vintage Fashion and Fabrics</em> by Pamela Smith</li>
								<li><em>Inspirations &quot;In Love with Tambour&quot;&#8212;</em>Vintage Textile pictures</li>
								<li><em>Handbag Chic&#8212;200 Years of Designer Fashion</em> by Desire Smith</li>
								<li><em>Virtual Vintage</em> by Linda Lindroth &amp; Deborah Tornello </li>
								<li><em>Victoriana Magazine</em>: article on Storage of Vintage Clothing</li>
								<li><em>The Seductive Shoe</em> by Jonathan Walford</li>
								<li><em>Secret Services&#8212;Your Pocket  Fashion Guide</em> by Cary Whitley</li>
						</ul>
				</div>
				<div class="book"><img src="http://www.vintagetextile.com/images/Graphics/handbagchicx.jpg" width="204" height="250" alt="Handbag chic" class="bookleft" /><img src="http://www.vintagetextile.com/images/Graphics/virtualvintage.jpg" alt="Virtual Vintage book" width="173" height="250" /><img src="http://www.vintagetextile.com/images/Graphics/Victoriana0507.jpg" width="200" height="250" alt="Victoriana Magazine" class="bookright" /></div>
				<div class="book1"><img src="http://www.vintagetextile.com/images/Graphics/shoebook.jpg" alt="Seductive Shoe book" width="241" height="250" class="bookleft2" /><img src="http://www.vintagetextile.com/images/Graphics/secretservices.jpg" alt="secret services book" width="241" height="250" class="bookright2" /></div>
				<div id="measure">Measurements and Fit</div>
				<p class="articlesub">Do you need help with how to take your measurements?&nbsp;&nbsp;<a href="new_page_145.htm" class="main">Enter</a></p>
		</div>
		<div class="updatetop">Layaways</div>
		<p class="articlesub">For information about our Layaway Policy, check the <a href="order.htm" class="main">Order Page</a> for details.</p>
		<div class="updatetop hide"><a href="links.htm">Links</a></div>
		<p id="s3">Copyright 1999-2014 by Vintage Textile, all rights reserved.</p>
		<p id="s2"><a href="privacy.htm">Privacy Policy</a></p>
</div>
</body>
</html>

That seems to be working fine in IE also. I’d need to see your whole code (packaged up like my example so you can just cut and paste to test :)).

However, when I narrow the screen in FF to the point where the design calls for a breakpoint, how do I measure the # of pixels horizontally, or is there a formula for converting inches or cm. to pixels?

You can get an extension in Firefox that adds the current pixel width to the browser chrome so you don’t need to work anything out. In Chrome I get the pixel width displayed when I open the web developer tools and the height and width is displayed at the top of the screen in a transparent overlay .

Paul:
Here is the package:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="google-site-verification" content="IVrah1ReyM-Z6ky-CjLafpZi3HsEb8UHdiJkTtEtmog" />
<title>VintageTextile | Vintage Clothing | Vintage Costume</title>
<meta name="description" content="High style vintage clothing,historic costume,haute couture,designer fashion,decorative textiles (1690-1960) &amp; shawls for the discriminating collector." />
<meta name="keywords" content="vintage clothing,1920s dresses,vintage clothes,high style clothing,vintage dresses,party dress,vintage dresses,vintage couture,vintage evening gowns,historic costume,bridal gowns,flapper dress,shawls,audrey hepburn,vintage textiles" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style_sheets/home_new_pad.css" />
<link rel="stylesheet" type="text/css" href="style_sheets/homemenus.css" />

<style>
html {overflow-y:scroll;}
body {padding:0 45px;max-width: 980px;margin: 0 auto; border:0; color:#000; background-color:#fff;
	font: 1em/1.2 Verdana, Tahoma, Helvetica, sans-serif;	}
#preface {padding:.3em;	margin-bottom:1.2em; font-size:1.04em;line-height:1.17}
#format{width:80%;word-spacing:-.1em;margin-left:auto; margin-right:auto;}
#top{margin-top:1em}
img {max-width: 100%;border:none;height: auto !important;}
.center img.tall {width: 100%; max-width: 400px; height: auto;}
.images span {	display: inline-block; overflow: hidden;text-align:center;}
.images .tall {width:32.4%;max-width:400px; height:auto; vertical-align:top;}
img.tall {width:400px;height:585px;}
img.wide {width:600px;height:500px;}
#bottomBorder {padding-bottom: 0.5em; border-bottom: #fc6 solid 1em;}
.picleft{border:0;float:left;}
.picright{border:0;float:right;}
.bi{font-weight:bold;}
#cat{padding-top:0.2em;font:1.1em Verdana,Tahoma,Helvetica,sans-serif;text-align:center;}
.updatetop{padding:.3em;margin-top:1em;background-color:#F5EBD6;color:Black;font:bold 1.4em
"Times New Roman",Times,serif;}
#measure{padding:.3em .3em .3em;clear:left;margin-top:1em;background-color:#F5EBD6;color:Black;font:bold 1.4em "Times New Roman",Times,serif;}
h3{display:block;padding:.3em;margin:.4em 0 .6em 0;background-color:#F5EBD6;color:Black;font:1.3em
"Times New Roman",Times,serif;}
a.sr:link{color:#00f;background-color:#F5EBD6;text-decoration:none;font-size:1.1em;}
a.sr:visited{color:#00f;background-color:#F5EBD6;text-decoration:none;font-size:1.1em;}
#updatepub{padding:.3em;margin:1em 0;background-color:#F5EBD6;color:Black;font:bold 1.4em
"Times New Roman",Times,serif;}
.x12{font-size:1em;}
.articlesub{font:1.1em Verdana,Tahoma,Helvetica,sans-serif;}
a.main:link{color:#D2691E;text-decoration:underline;background-color:#fff;}
a.main:visited{color:#8B0000;text-decoration:underline;background-color:#fff;}
a.main:hover{color:red;text-decoration:underline;background-color:#fff;}
h1{display:block;font:bold 1.1em Verdana,Tahoma,Helvetica,sans-serif;color:#666666;
padding:0.2em 12px 0.35em;  margin-bottom:0.5em;margin-top:4%;float:right;}
div.cl ul {list-style-type:none;line-height:1.3;}
div.cl{clear:both;margin-top:.4em;}
#s3{font-size:.8em;font-weight:bold;text-align:center;}
#s2{font-size:.72em;text-align:center;}
.book{margin-left:auto;margin-right:auto;}
.book img{border:0;vertical-align:bottom;}
.bookleft{border:0;margin-right:6%;}
.bookright{border:0;margin-left:6%;}
.book1{margin-top:1.8em;}
.book1 img{border:0;vertical-align:bottom;}
.bookleft2{border:0;margin-right:3%;margin-left:9%;}
.bookright2{border:0;margin-left:3%;}
p.largecat a#burn {color:#00f;background-color:#fff;text-decoration:underline}
a.ct:link{color:#00f;text-decoration:none;background-color:#fff;}
a.ct:visited{color:#8B0000;text-decoration:none;background-color:#fff;}
a.ct:hover{color:red;text-decoration:none;background-color:#fff;}

@media only screen and (max-width:900px) {
.hide { display:none; }}
.images { text-align:center }

@media only screen and (max-width:700px) {
body{padding:0 15px}
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	margin:0 4px;}

@media only screen and (max-width:465px) {
body{padding:0 5px}
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	float:none;}
</style>


<style>
.nav {list-style:none;
    display:table;
    width:100%;
    text-align:center;
    word-spacing:-1em;
    padding:0;
    margin:0;}
.nav{padding-bottom:3px;}
.nav li { display:inline-block;
    word-spacing:0;}
.nav li:before { content:":";
    display:inline-block;
    padding:0 1px;}
.nav li:first-child:before { content:"";
    padding:0;}	
.nav a,
.nav span {    display:inline-block;
    text-decoration:none;
    padding:.1875em .4375em;}
	
.nav a:link,
.nav a:visited {color:#8b0000;}
.nav a:hover { color:#8b0000;
    background-color:#f5ebd6;
    text-decoration:underline;}	
.nav a:active {color:#f00;}
.nav span {    display:none;
    color:#000;
    background-color:#f5ebd6;}
#home .home a {display:none;}	
#home .home span { display:inline-block;}
</style>

<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body id="home">
<div><img src="http://www.vintagetextile.com/images/Graphics/logohome.gif" width="269" height="74" id="top" alt="vintageTextile.com" />
		<h1>High Style Vintage Clothing<br />
				&amp;&nbsp;18th Century Costume</h1>
</div>
<div class="images" id="bottomBorder"><span><img src="http://www.vintagetextile.com/images/1920%27s/c422home.jpg" alt="Fortuny peplos" width="800" height="1170" class="tall picleft" /><img src="http://www.vintagetextile.com/images/Edwardian/2762p.jpg" alt="Callot Soeurs" width="800" height="1170" class="tall hpic2" /><img src="http://www.vintagetextile.com/images/1920%27s/1336o.jpg" alt="1920s gold dress" width="800" height="1170" class="tall picright hpic1" /></span></div>
<ul class="nav">
		<li><a href="early.htm">Early</a></li>
		<li><a href="victorian.htm">Victorian</a></li>
		<li><a href="edwardian.htm">Edwardian</a></li>
		<li><a href="1920s_to_1930s.htm">1920s to 1930s</a></li>
		<li><a href="1940s_to_designer.htm">1940s to Designer</a></li>
		<li><a href="shawlstext.htm">Shawls/Textiles</a></li>
		<li><a href="gallery.htm">Gallery</a></li>
		<li><a href="treasure_hunt.htm">Treasure Hunt</a></li>
		<li><a href="searchvt.htm">Search</a></li>
		<li><a href="order.htm">To Order</a></li>
		<li><a href="mailto:Linda@vintagetextile.com">Email</a></li>
		<li class="home"><a href="index.html">Home</a><span>Home</span></li>
</ul>
<div id="format">
		<div id="preface">
				<p>Vintage Textile is proud...and Shawls/Textiles.</p>
				<div class="hide">
						<p>We have...to the present. </p>
						<p>With a background...connoisseurs worldwide.</p>
				</div>
		</div>
		<h3><a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook"><img src="http://www.vintagetextile.com/images/Graphics/f_logo.jpg" width="50" height="50" alt="facebook logo" /></a>&nbsp;&nbsp;&nbsp;For the latest at VintageTextile.com, please visit our <a class="sr" href="http://www.facebook.com/pages/VintageTextilecom/388978794490710" title="VintageTextile.com Facebook">Facebook page!</a></h3>
		<p>Check out our <a class="ct" href="https://www.facebook.com/pages/VintageTextilecom/388978794490710?sk=photos_albums" title="VintageTextile.com Facebook">Facebook albums</a> devoted to <em>Vintage Textile Brides</em> and <em>Belle Epoque</em>, the most recent in a series of albums from the VintageTextile archives.</p>
		<h3><a class="sr" href="searchvt.htm">Search</a> the site.</h3>
		<p>Click on &quot;Search&quot; or <a class="ct" href="#categ">choose a category</a> at the top of the page to find the perfect vintage gown or accessory. Great design never goes out of style!</p>
		<div class="updatetop">Update Schedule</div>
		<p class="largecat"><b>March 20, 2014</b><strong>—</strong>The Early, Victorian, 1920s-1930s, 1940s-Designer, and Shawls/Textiles sections will be updated.</p>
		<p class="largecat"><b>February 18, 2014</b><strong>—</strong>The <a href="treasure_hunt.htm">Treasure Hunt</a><a href="1940s_to_designer.htm"></a> section has been updated.</p>
		<p class="largecat"><b>November 11, 2013</b><strong>—</strong>The <em><a href="brides.htm">Vintage Textile Brides</a></em> article has been updated.</p>
		<p class="largecat"><strong>June 8, 2012—</strong>For valued clients over the years, I have
				been happy to provide to the future bride the gown she will wear on the most important day of her
				life. The updated <a href="brides.htm" class="main">Vintage Textile Brides</a> page shows a selection
				of these gowns as first presented here and then in all their glory at the wedding.</p>
		<p class="largecat"><b>December 14, 2009</b>—The Gallery of sold items has been updated. This photo archive will be an evolving category available for study and enjoyment. Enter <a class="main" href="gallery.htm">The Gallery</a>.</p>
		<p class="largecat">If you would like to be notified when the site is updated, please send your name and email address to <a href="mailto:update@vintagetextile.com" class="main">update@vintagetextile.com</a></p>
		<div class="hide">
				<div class="updatetop">Articles</div>
				<div class="articlesub">
						<p>January, 2011—Enjoy our new section on <a href="brides.htm" class="main">Vintage Textile Brides</a></p>
						<p>December, 2008—Read our updated article on the <a href="vintage_advantage.htm" class="main">Vintage Advantage </a></p>
						<p>March, 2007—Read our article on the <a href="little_black_dress.htm" class="main">Little Black Dress</a>.</p>
						<p>December, 2006—Our article on the <a href="storage%20of%20Vintage%20clothing.htm" class="main">Storage of Vintage Clothing and Textiles</a>.</p>
						<p>To gain an in-depth understanding of the field, please review our comprehensive ongoing
								series of original articles on all aspects of collecting and investing in vintage clothing. </p>
				</div>
				<div class="articlesub">
						<p><a href="articles.htm" class="main"><span class="x12"> Article Page </span></a></p>
				</div>
				<div id="updatepub">Vintage Textile in print</div>
				<div class="book"><img src="http://www.vintagetextile.com/images/Graphics/roadshowx.jpg" alt="Antiques Roadshow book" width="204" height="250" class="bookleft" /><img src="http://www.vintagetextile.com/images/Graphics/book1x.jpg" alt="Vintage Fashion Price Guide" width="173" height="250" /><img src="http://www.vintagetextile.com/images/Graphics/inspirations.jpg" alt="VT tambour pictures" width="200" height="250" class="bookright" /></div>
				<div class="cl">
						<ul>
								<li><em>Antiques Roadshow Collectibles—the Complete Guide (2003)</em> by Carol Prisant </li>
								<li><em>Price Guide to Vintage Fashion and Fabrics</em> by Pamela Smith</li>
								<li><em>Inspirations &quot;In Love with Tambour&quot;—</em>Vintage Textile pictures</li>
								<li><em>Handbag Chic—200 Years of Designer Fashion</em> by Desire Smith</li>
								<li><em>Virtual Vintage</em> by Linda Lindroth &amp; Deborah Tornello </li>
								<li><em>Victoriana Magazine</em>: article on Storage of Vintage Clothing</li>
								<li><em>The Seductive Shoe</em> by Jonathan Walford</li>
								<li><em>Secret Services—Your Pocket  Fashion Guide</em> by Cary Whitley</li>
						</ul>
				</div>
				<div class="book"><img src="http://www.vintagetextile.com/images/Graphics/handbagchicx.jpg" width="204" height="250" alt="Handbag chic" class="bookleft" /><img src="http://www.vintagetextile.com/images/Graphics/virtualvintage.jpg" alt="Virtual Vintage book" width="173" height="250" /><img src="http://www.vintagetextile.com/images/Graphics/Victoriana0507.jpg" width="200" height="250" alt="Victoriana Magazine" class="bookright" /></div>
				<div class="book1"><img src="http://www.vintagetextile.com/images/Graphics/shoebook.jpg" alt="Seductive Shoe book" width="241" height="250" class="bookleft2" /><img src="http://www.vintagetextile.com/images/Graphics/secretservices.jpg" alt="secret services book" width="241" height="250" class="bookright2" /></div>
				<div id="measure">Measurements and Fit</div>
				<p class="articlesub">Do you need help with how to take your measurements?&nbsp;&nbsp;<a href="new_page_145.htm" class="main">Enter</a></p>
		</div>
		<div class="updatetop">Layaways</div>
		<p class="articlesub">For information about our Layaway Policy, check the <a href="order.htm" class="main">Order Page</a> for details.</p>
		<div class="updatetop hide"><a href="links.htm">Links</a></div>
		<p id="s3">Copyright 1999-2014 by Vintage Textile, all rights reserved.</p>
		<p id="s2"><a href="privacy.htm">Privacy Policy</a></p>
</div>
</body>
</html>

The issue seems to be in this part:

@media only screen and (max-width:900px) {
.hide { display:none; }}
.images { text-align:center }
@media only screen and (max-width:700px) {
body{padding:0 15px}
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	margin:0 4px;}

BTW, I moved the 45px padding to the main <body> tag, because I was concerned that there would be no padding on screens wider than 1030px. Is that OK?
In your version,

.images { text-align:center }

was not inside any @media declaration, not that it is doing me any good placed in the large tablet section.
My style sheets do not pass CSS validation:
75 Parse Error @media only screen and (max-width:465px) { body{padding:0 5px} .hpic2 { display:none; } .images .tall { width: 70%; max-width:400px; height:auto; vertical-align:top; float:none;}

Is there a way for me to post an image of how the design looks in the IE smart phone viewport, where 2, instead of 1, pictures are shown?

Hi,

If you tested my version then you would see that there was no problem in IE and you could compare and see where you went wrong :slight_smile:

You have omitted two closing tags for the media queries so they are corrupted.

I’ve added them back in here:



@media only screen and (max-width:700px) {
body{padding:0 15px}
.hpic1 { display:none; }
.images .tall {
	width:48%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	margin:0 4px;}
}[B]/* was missing */[/B]
@media only screen and (max-width:465px) {
body{padding:0 5px}
.hpic2 { display:none; }
.images .tall {
	width: 70%;
	max-width:400px;
	height:auto;
	vertical-align:top;
	float:none;}
}/* was missing */
</style>


BTW, I moved the 45px padding to the main <body> tag, because I was concerned that there would be no padding on screens wider than 1030px. Is that OK?

Its ok but unnecessary because at 1030px and wider your 980px max-width layout will be centred in the viewport anyway and will have natural space on each side as it sits in the center of the viewport.

was not inside any @media declaration,

It didn’t need to be as it will only take effect when those images are not floated which only happens when you change their properties in your media query. The rule can go globally or put in the media query where you remove one image.

Paul:
I should not have missed those two closing brackets. I’ve got to stop doing code at 11:30pm :slight_smile:
With your last two fixes, everything works just great now. I will find that FF add-on for pixel-width so I can refine my media-query breakpoints and then hopefully go live with the home page tomorrow.
You not only came up with a fantastic CSS solution but also provided a mini-tutorial on CSS for us amateurs.
Two minor issues:
a) I don’t have Chrome and wondered if you had looked at the page in Chrome.
b) Since I am hiding a fair amount of text in the smaller viewports, do you think that would affect the Google robot’s scoring of the page, or does the robot focus on the desktop version?
c) Do you think I should install Chrome, especially since FF seems to be the least secure browser? I have refrained from installing Chrome because, when I did install it, it seemed to take over my system with its incessant program updates.

I use chrome 50% of the time anyway and I always have firefox ie and chrome open when testing. It looked the same to me in Chrome as far as I remember :slight_smile: Just download chrome and use it for testing - its the biggest browser out there by far now and should be the first one to test.

b) Since I am hiding a fair amount of text in the smaller viewports, do you think that would affect the Google robot’s scoring of the page, or does the robot focus on the desktop version?

It’s the html content that bots/search engines are interested in. Hiding content will only get you in trouble if you are hiding duplicate content in an attempt to spam search engines. Any normal use of css and html will not get you penalised.

c) Do you think I should install Chrome, especially since FF seems to be the least secure browser? I have refrained from installing Chrome because, when I did install it, it seemed to take over my system with its incessant program updates.

I answered that question partially above but the beauty of chrome and Firefox (and latest IE) is that they update automatically (unless you tell them not to) which means bugs are fixed quicker and most users are then using the most modern system so you don’t need to code for 47 versions. You get the new css features earlier and can use them quicker because the newer browsers are updated automatically and frequently . IE lost out badly and held the web back after ie6 because it never went forward quickly enough.

Chrome should be your main testing tool as support is double that of its nearest rivals.

Paul:
I just downloaded a great little FF add-on, “MeasureIt”, which lets me measure pixels on the screen. I have downloaded Chrome and will go with that. And thank you for the benefit of your great web and CSS expertise!