@ronpat,
I think the conversation broke down with my absence and yours.
I have been playing around with the code you gave me, and below is my best attempt to understand and improve it.
A few comments…
1.) I did not see any value provided by using .outerwrap and .wrapper. Please see if you can break my streamlined code.
2.) I changed the logic of the code and have three sections: styles for all, styles for mobile, and styles for desktop. (Notice desktop comes last.)
3.) I forgot if I was able to fix the padding issue…
4.) This whole “Our Services” thing would ultimately just be a portion of my entire home page.
Let me know what you think of this code…
<!doctype html>
<html lang="en">
<head>
<title>Our Services</title>
<!-- HTML Metadata -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Page Stylesheets -->
<style type="text/css">
/* Basic CSS Reset */
/*****************************************/
html, body, address, blockquote, div,
form, fieldset, caption,
h1, h2, h3, h4, h5, h6,
hr, ul, li, ol, ul, dl, dt, dd, br,
table, tr, td, th, p, img{
margin: 0;
padding: 0;
}
header, footer, nav, section, article, aside{
display: block;
}
body{
font-family: Helvetica, Arial, Sans-Serif;
font-weight: normal;
font-size: 0.9em;
line-height: 1.4;
color: #000;
background: #FFF;
}
/* Services (general) */
/*****************************************/
nav{
background-color: #bdf;
}
a{
color: inherit;
line-height: 1.2;
text-decoration: none;
text-align: left;
border: 1px solid #854;
}
a:hover{
color: #00F;
}
span{
padding: 0 0 0.25em 0;
font-weight: bold;
font-size: 1.2em;
}
/* Services (mobile) */
/*****************************************/
@media screen and (max-width: 53em){
.outermost{
width: auto;
}
nav,
a,
span{
display: block;
width: auto;
height: auto;
}
a{
padding: 0.5em 0 1em 0.8em;
}
a+a{
border-top: 0;
}
}
/* Services (desktop) */
/*****************************************/
@media screen and (min-width: 53em){
.outermost{
width: 52em;
margin: 0 auto;
}
nav{
display: table;
table-layout: fixed; /* Equal-width Boxes. */
border-collapse: collapse;
width: 100%;
height: 100%;
}
a{
display: table-cell;
padding: 0.5em 0.8em 1em 0.8em;
vertical-align: top;
}
span{
display: table-cell;
width: 1%; /* Use available space. */
height: 2.4em; /* Allow for wrapping heading. */
text-align: center;
vertical-align: bottom;
}
}
</style>
</head>
<body>
<div class="outermost">
<div class="outerwrap">
<div class="wrapper">
<nav>
<a href="#go1">
<span>Responsive Design</span>
Lorem imsum dolor sit amet, consectetur adipiscing elit. Donec lictus nulla, scelerisque id augue in, maximus mollis erat.
</a>
<a href="#go2">
<span>Mobile</span>
Lorem imsum dolor sit amet, consectetur adipiscing elit. Donec lictus nulla, scelerisque id augue in, maximus mollis erat.
</a>
<a href="#go3">
<span>SEO</span>
Lorem imsum dolor sit amet, consectetur adipiscing elit. Donec lictus nulla, scelerisque id augue in, maximus mollis erat.
</a>
<a href="#go4">
<span>Programming</span>
Lorem imsum dolor sit amet, consectetur adipiscing elit. Donec lictus nulla, scelerisque id augue in, maximus mollis erat.
</a>
<a href="#go5">
<span>Business Development</span>
Lorem imsum dolor sit amet, consectetur adipiscing elit. Donec lictus nulla, scelerisque id augue in, maximus mollis erat.
</a>
</nav>
</div>
</div>
</div>
</body>
</html>