Ctrl-z My PC
New Member
- Reaction score
- 1
Hello,
On my site: http://Ctrlzmypc.com at the top is the logo, and a slogan next to it. Pulled all the way right is the contact information. When I go smaller to 768px, the contact information shifts down and centers under the logo / slogan. Below 600px screen, the slogan shifts down and everything centers.
My Problem: Whenever I go from <600px back to regular, the slogan gets crunched next to the logo....Is this a problem I should even worry about? I mean if someone is viewing it under 600, chances are they are on a mobile device and wont be switching to full desktop view without refreshing...But it still irks me.
I've included all pertinent html / css for this question if anyone cares to take a stab at it...Sorry for the long post too.
Thanks in advance for any help!
The code for the header:
For the CSS, I have this for all desktop sized screens for the header...:
And for the grid itself on all screens:
And finally for different screen sizes:
On my site: http://Ctrlzmypc.com at the top is the logo, and a slogan next to it. Pulled all the way right is the contact information. When I go smaller to 768px, the contact information shifts down and centers under the logo / slogan. Below 600px screen, the slogan shifts down and everything centers.
My Problem: Whenever I go from <600px back to regular, the slogan gets crunched next to the logo....Is this a problem I should even worry about? I mean if someone is viewing it under 600, chances are they are on a mobile device and wont be switching to full desktop view without refreshing...But it still irks me.
I've included all pertinent html / css for this question if anyone cares to take a stab at it...Sorry for the long post too.
Thanks in advance for any help!

The code for the header:
Code:
<header class="col12">
<div id="logo">
<h1><a href="/" title="Ctrl-z My PC">Ctrl-z <span>My PC</span></a></h1>
<span id="slogan">
<em><strong>Fredericksburg's <span style="color: #f58908">emergency</span> computer repair.</strong></em>
</span>
</div>
<div id="contact_top">
<p><span id="call_us">Call us:</span> <a href="tel:+1-540-538-8587" title="Call Us"><span>(540) 538-8587</span></a></p>
<p><a href="/contact-us" title="Contact Us">Support@CtrlzMyPC.com</a></p>
<address>
112 Ashby Street<BR/> Fredericksburg, Va 22401
</address>
</div>
</header>
For the CSS, I have this for all desktop sized screens for the header...:
Code:
/* HEADER INFORMATION
============================================================================================== */
header {background: #fff; width: 100%; overflow: hidden; clear: both; margin: 0px;}
/* LOGO AND SLOGAN */
#logo {padding: 10px; float: left}
#logo h1, #logo h1 a { color: #373737; font-size: 2em; line-height: 1em; margin: 10px 0 0 0 ; float: left;}
#logo h1 span { font-size: .5em; color: #0798d7; font-style: italic;}
#logo #slogan { border-left: 1px solid #ececec; padding:10px 0 10px 21px; height: 32px; color:#424c58; font-size: 1em; position: relative; top: 50px; margin-left: 21px; vertical-align: middle; }
/* CONTACT BOX AT TOP */
#contact_top {text-align: right; padding: 20px 20px 0 0; float: right;}
#contact_top p, #contact_top address {margin-bottom: .5em;}
#contact_top #call_us {color: #aeaeae; font-size: 1em;}
#contact_top p a, #contact_top address {font-size: .8125em; font-weight: bold}
#contact_top p a span { color: #6c6c6c; font-size: 1.25em !important}
And for the grid itself on all screens:
Code:
.container {
max-width:1100px;
margin:0 auto;
width: 100%;
padding: 0px
}
.content{
max-width:1080px;
padding: 0px;
margin: 0 auto;
width: 98%;
}
.col1, .col2, .col3, .col4, .col5, .col6, .col7, .col8, .col9, .col10, .col11, .col12 {
float:left;
margin-right:1.845%;
}
/*Default + 12 COLUNAS*/
.col1{width:6.642%;}
.col2{width:15.129%;}
.col3{width:23.616%;}
.col4{width:32.103%;}
.col5{width:40.590%;}
.col6{width:49.077%;}
.col7{width:57.546%;}
.col8{width:66.051%;}
.col9{width:74.538%;}
.col10{width:83.025%;}
.col11{width:91.512%;}
.col12{width:100%; margin-right:0px;}
And finally for different screen sizes:
Code:
/* All styles below are for smaller browesr sizes. Starts with a 768px, then a 600px */
/*===================================================== MOBILE BROWSERS =============================================================*/
/* 768px */
@media only screen and (max-width : 768px) {
#contact_top, #logo {float: none; }
#contact_top {text-align: center; padding: 0; clear: both;}
}
/* 600px */
@media only screen and (max-width : 600px) {
/* RESET BASE VALUES FOR STYLES */
.col1, .col2, .col3, .col4, .col5, .col6, .col7, .col8, .col9, .col10, .col11, .col12, .col3_wide, .col6_wide, .colhalf_wide {
float: none;
margin:0;
width:100%;
clear: both}
#contact_top,
#logo ,
#logo h1,
#logo h1 a ,
#logo #slogan {float: none; margin: 0px; padding: 0px; height: auto; width: 100%; border: 0px;}
#logo { width: 100%; padding-top: 10px; text-align: center;}
#logo #slogan { padding-bottom: 10px; color:#424c58; font-size: .85em; clear: both; top: auto; display: block; width: 100%; text-align: center; height: auto;}
#contact_top {text-align: center; padding: 0; clear: both;}
}