How can I make this css auto fit the screen - html

I download a template to use for my home page but it is not giving a good display as filling the whole screen as I expected. The page goes over the screen zone to some right part as given in the screenshot. I have searched some solutions but not working, for example,
<meta name=”viewport” content=”width=device-width, initial-scale=1″ /><!--Added2017-4-28-->
<!–[if lt IE 9]><script src=”http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js”></script><![endif]–><!--Added2017-4-28-->
nsole: true babel: false -->
/*
Template Name: Education Board
File: Layout CSS
Author: OS Templates
Author URI: http://www.cssmoban.com/
Licence: Website Template Licence
*/
#import url(navi.css);
#import url(forms.css);
#import url(tables.css);
#import url(homepage.css);
#import url(gallery.css);
#import url(portfolio.css);
#import url(featured_slide.css);
body{
font: normal 100% Helvetica, Arial, sans-serif;
}
<!--width:auto;-->
body{
margin:0;
padding:0;
font-size:1em;
font-family:Georgia, "Times New Roman", Times, serif;
color:#979797;
background-color:#333333;
}
.main {float: right;width: auto;}
.leftBar {float: left;width: auto%;}
img{margin:0; padding:0; border:none;}
.justify{text-align:justify;}
.bold{font-weight:bold;}
.center{text-align:center;}
.right{text-align:right;}
.nostart{list-style-type:none; margin:0; padding:0;}
.clear:after{content:"."; display:block; height:0; clear:both; visibility:hidden; line-height:0;}
.clear{display:inline-block;}
html[xmlns] .clear{display:block;}
* html .clear{height:1%;}
a{outline:none; text-decoration:none;}
.fl_left{float:left;}
.fl_right{float:right;}
.imgholder, .imgl, .imgr{padding:4px; border:1px solid #D8D8D8; text-align:center;}
.imgl{float:left; margin:0 15px 15px 0; clear:left;}
.imgr{float:right; margin:0 0 15px 15px; clear:right;}
/* ----------------------------------------------Wrapper-------------------------------------*/
div.wrapper{
display:block;
width:100%;
text-align:left;
}
div.wrapper h1, div.wrapper h2, div.wrapper h3, div.wrapper h4, div.wrapper h5, div.wrapper h6{
margin:0 0 15px 0;
padding:0;
font-size:16px;
font-weight:normal;
font-style:italic;
line-height:normal;
color:#333333;
background-color:transparent;
}
.row1, .row2{color:#979797; background-color:#E1D6CB;}
.row3{color:#979797; background-color:#FFFFFF; border-top:1px solid #510000; border-bottom:5px solid #E1D6CB;}
.row3 a{color:#896C50; background-color:#FFFFFF;}
.row4{padding:30px 0;}
/* ----------------------------------------------Generalise-------------------------------------*/
#header, #container, #footer, #copyright{
position:relative;
margin:0 auto 0;
display:block;
width:960px;
}
/* ----------------------------------------------Header-------------------------------------*/
#header{padding:25px 0 30px 0;}
#header h1, #header p, #header ul{
margin:0;
padding:0;
list-style:none;
line-height:normal;
}
#header h1{font-size:26px; font-variant:small-caps; font-style:normal;}
#header h1 a{color:#333333; background-color:#E1D6CB;}
#header p{font-size:12px;}
#header p a{color:#510000; background-color:#E1D6CB;}
#header .fl_left, #header .fl_right{margin-bottom:15px;}
#header .fl_right{margin-top:13px;}
#header .fl_right p{float:left; margin:5px 50px 0 0;}
/* ----------------------------------------------Content-------------------------------------*/
#container{padding:30px 0; line-height:1.6em;}
#container h1, #container h2, #container h3, #container h4, #container h5, #container h6{
background-color:#FFFFFF;
margin:0 0 15px 0;
padding:0 0 10px 0;
border-bottom:1px solid #D8D8D8;
}
#container .readmore{
display:block;
width:100%;
text-align:right;
line-height:normal;
}
#content{
display:block;
float:left;
width:630px;
}
/* ------Comments-----*/
#comments{margin-bottom:40px;}
#comments .commentlist{margin:0; padding:0;}
#comments .commentlist ul{margin:0; padding:0; list-style:none;}
#comments .commentlist li.comment_odd, #comments .commentlist li.comment_even{margin:0 0 10px 0; padding:15px; list-style:none;}
#comments .commentlist li.comment_odd{color:#666666; background-color:#F7F7F7;}
#comments .commentlist li.comment_odd a{color:#896C50; background-color:#F7F7F7;}
#comments .commentlist li.comment_even{color:#666666; background-color:#E8E8E8;}
#comments .commentlist li.comment_even a{color:#896C50; background-color:#E8E8E8;}
#comments .commentlist .author .name{font-weight:bold;}
#comments .commentlist .submitdate{font-size:smaller;}
#comments .commentlist p{margin:10px 5px 10px 0; padding:0; font-weight:normal; text-transform:none;}
#comments .commentlist li .avatar{float:right; border:1px solid #EEEEEE; margin:0 0 0 10px;}
/* ----------------------------------------------Column-------------------------------------*/
#column{
display:block;
float:right;
width:300px;
}
#column .holder, #column #featured{
display:block;
width:300px;
margin-bottom:30px;
}
#column .holder h2.title{
display:block;
width:100%;
height:65px;
margin:0;
padding:15px 0 0 0;
font-size:20px;
text-transform:none;
line-height:normal;
border-bottom:1px dotted #999999;
}
#column .holder h2.title img{
float:left;
margin:-15px 8px 0 0;
padding:5px;
border:1px solid #999999;
}
#column div.imgholder{
display:block;
width:290px;
margin:0 0 10px 0;
}
#column .holder p.readmore{
display:block;
width:100%;
font-weight:bold;
text-align:right;
line-height:normal;
}
/* Featured Block */
#column #featured ul, #column #featured h2, #column #featured p{
margin:0;
padding:0;
list-style:none;
color:#666666;
background-color:#F7F7F7;
}
#column #featured a{
color:#896C50;
background-color:#F7F7F7;
}
#column #featured li{
display:block;
width:250px;
margin:0;
padding:20px 25px;
color:#666666;
background-color:#F7F7F7;
}
#column #featured li p.imgholder{
display:block;
width:240px;
height:90px;
margin:20px 0 15px 0;
}
#column #featured li h2{
margin:0;
padding:0 0 8px 0;
font-weight:normal;
font-family:Georgia, "Times New Roman", Times, serif;
line-height:normal;
border-bottom:1px dotted #999999;
}
#container #column .readmore a{
display:block;
width:100%;
margin-top:15px;
height:auto;
padding-left:0;
font-weight:bold;
text-align:right;
line-height:normal;
background:none;
}
#column .latestnews{
display:block;
width:100%;
margin:0;
padding:0;
list-style:none;
}
#column .latestnews li{
display:block;
width:100%;
height:99px;
margin:0 0 11px 0;
padding:0 0 21px 0;
border-bottom:1px dotted #C7C5C8;
overflow:hidden;
}
#column .latestnews li.last, #column .last{
margin-bottom:0;
}
#column .latestnews p{
display:inline;
}
#column .latestnews img{
float:left;
margin:0 10px 0 0;
padding:4px;
border:1px solid #C7C5C8;
clear:left;
}
/* ----------------------------------------------Footer-------------------------------------*/
#footer{line-height:1.6em; background:url("../images/footer_bg.gif") 550px 0 repeat-y;}
#footer a{
color:#979797;
background-color:#333333;
}
#footer h2{
color:#FFFFFF;
background-color:#333333;
font-weight:bold;
font-style:normal;
}
#footer ul{
margin:0;
padding:0;
list-style:none;
}
#footer address{
font-style:normal;
}
#footer .footbox{
display:block;
float:left;
width:200px;
margin-right:30px;
}
#footer #social{
margin-bottom:20px;
}
#footer #social ul{
margin:20px 0 0 0;
}
#footer #social li{
display:inline;
margin-right:15px;
}
#footer .last{margin:0;}
/* ----------------------------------------------Copyright-------------------------------------*/
#copyright{
padding:15px 0;
border-top:1px solid #979797;
}
#copyright p{
margin:0;
padding:0;
}
#copyright, #copyright a{
color:#979797;
background-color:#333333;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head profile="http://gmpg.org/xfn/11">
<title>NCUT Test</title>
<meta name=”viewport” content=”width=device-width, initial-scale=1″ /><!--Added2017-4-28-->
<!–[if lt IE 9]><script src=”http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js”></script><![endif]–><!--Added2017-4-28-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<!-- CSS Mode -->
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 600px)"
href="style/css/css600.css" />
<link rel="stylesheet" type="text/css" href="styles/layout.css" />
<link rel="stylesheet" type="text/css" href="styles/navi.css" />
<link rel="stylesheet" type="text/css" href="styles/forms.css" />
<link rel="stylesheet" type="text/css" href="styles/tables.css" />
<link rel="stylesheet" type="text/css" href="styles/homepage.css" />
<link rel="stylesheet" type="text/css" href="styles/gallery.css" />
<link rel="stylesheet" type="text/css" href="styles/portfolio.css" />
<link rel="stylesheet" type="text/css" href="styles/featured_slide.css" />
<!-- 400px screen -->
<link rel="stylesheet" type="text/css"
media="screen and (min-width: 400px) and (max-device-width: 600px)"
href="smallScreen.css" /> <!-- 400px 600px screen -->
<!--ink rel="stylesheet" href="styles/layout.css" type="text/css" /-->
<!-- End CSS Mode --><!--Added2017-4-28-->
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.timers.1.2.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.2.1.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
<h1>NCUT Test</h1>
<p>Free CSS Website Template</p>
</div>
<div class="fl_right">
<p>A - Z Index | Student Login | Staff Login</p>
<form action="#" method="post" id="sitesearch">
<fieldset>
<legend>Site Search</legend>
<input type="text" value="Search Our Website…" onfocus="this.value=(this.value=='Search Our Website…')? '' : this.value ;" />
<input type="image" src="images/search.gif" id="search" alt="Search" />
</fieldset>
</form>
</div>
<div id="topnav">
<ul>
<li class="active">Home</li>
<li>Test 1</li>
<li>Test 2</li>
<li>Test 3</li>
<li>Test 4</li>
<li>Test 5</li>
<li>This a very long link</li>
<li class="last">This is the last</li>
</ul>
</div>
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row2">
<div id="hpage_featured" class="clear">
<!-- ####################################################################################################### -->
<div id="featured_slide">
<ul>
<li><img src="images/1.jpg" alt="" />
<div class="panel-overlay">
<h2>Nullamlacus dui ipsum</h2>
<p>Temperinte interdum sempus odio urna eget curabitur semper convallis nunc laoreet. Continue Reading »</p>
</div>
</li>
<li><img src="images/2.jpg" alt="" /></li>
<li><img src="images/3.jpg" alt="" />
<div class="panel-overlay">
<h2>Semvelit nonummy odio tempus</h2>
<p>Justolacus eger at pede felit in dictum sempus elit curabitur ipsum. Ametpellentum. Continue Reading »</p>
</div>
</li>
<li><img src="images/4.jpg" alt="" />
<div class="panel-overlay">
<h2>Pedefamet orci orci quisque</h2>
<p>Nonnam aenenasce morbi liberos malesuada risus id donec volutpat estibulum curabitae. Continue Reading »</p>
</div>
</li>
</ul>
</div>
<!-- ###### -->
<div class="intro clear">
<div class="welcome clear"><img class="imgl" src="images/5.jpg" alt="" />
<div class="fl_right">
<h2>Welcome to Our University</h2>
<p>Morbit incidunt maurisque eros molest nunc anteget sed vel lacus mus semper. Anter dumnullam interdum eros dui urna consequam ac nisl nullam ligula vestassa condimen tumfelis.</p>
</div>
</div>
<div class="popular">
<h2>Most Popular Links</h2>
<ul class="clear">
<li>» Visiting the University</li>
<li>» Undergraduate Courses</li>
<li>» Graduate Courses</li>
<li>» Postgraduate Research</li>
<li>» Postgraduate Taught</li>
<li>» International Students</li>
<li>» Lifelong Learning</li>
<li>» Graduate Health Services</li>
<li>» Graduate Housing</li>
<li>» Graduate Programs</li>
<li>» Graduate Student Association</li>
<li>» Campus Life At a Glance</li>
<li>» Campus Recreation</li>
<li>» Campus Safety & Security</li>
<li>» Class Schedules</li>
<li>» Course Descriptions & Catalogue</li>
<li>» Residential Colleges</li>
<li>» Schools and Colleges</li>
<li>» Student Activities</li>
<li>» Student Affairs</li>
</ul>
</div>
</div>
<!-- ####################################################################################################### -->
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row3">
<div id="container" class="clear">
<!-- ####################################################################################################### -->
<div id="homepage" class="clear">
<!-- ###### -->
<div id="content">
<div id="top_featured" class="clear">
<ul class="clear">
<li>
<h2>Sentumquisque Morbi</h2>
<img src="images/6.jpg" alt="" />
<p>Morbit incidunt maurisque eros molest nunc anteget sed vel lacus mus semper. Anter dumnullam interdum eros dui urna consequam ac nisl nullam ligula vestassa.</p>
<p class="readmore">Continue Reading »</p>
</li>
<li class="last">
<h2>Sentumquisque Morbi</h2>
<img src="images/7.jpg" alt="" />
<p>Morbit incidunt maurisque eros molest nunc anteget sed vel lacus mus semper. Anter dumnullam interdum eros dui urna consequam ac nisl nullam ligula vestassa.</p>
<p class="readmore">Continue Reading »</p>
</li>
</ul>
</div>
<div id="latestnews">
<h2>Latest News & Events</h2>
<ul>
<li>
<p><strong>Sentumquisque morbi dui congue tincidunt eu quis</strong><br />
This is a W3C compliant free website template from Web Template. This template is distributed using a Website Template Licence…</p>
<p class="readmore">Read The Full Story »</p>
</li>
<li>
<p><strong>Sentumquisque morbi dui congue tincidunt eu quis</strong><br />
You can use and modify the template for both personal and commercial use. You must keep all copyright information and credit links in the template and associated files. For more CSS templates visit Free Website Templates…</p>
<p class="readmore">Read The Full Story »</p>
</li>
<li class="last">
<p><strong>Sentumquisque morbi dui congue tincidunt eu quis</strong><br />
Vestassapede et donec ut est liberos sus et eget sed eget. Quisqueta habitur augue magnisl magna phasellus sagittitor…</p>
<p class="readmore">Read The Full Story »</p>
</li>
</ul>
</div>
<div id="quicklinks">
<h2>Quick Links</h2>
<ul>
<li>
<p>Make an Application <img src="images/8.jpg" alt="" /></p>
</li>
<li>
<p>Order a Prospectus <img src="images/9.jpg" alt="" /></p>
</li>
<li class="last">
<p>Support Us <img src="images/10.jpg" alt="" /></p>
</li>
</ul>
</div>
</div>
<!-- ###### -->
<div id="column">
<div class="holder">
<h2>Take The Virtual Tour</h2>
<!-- Begin Flash Here - This is the correct method for W3C validation -->
<object type="application/x-shockwave-flash" data="https://www.youtube.com/v/vxAU88LxLis?version=3&hl=en_US&fs=1&rel=0" width="300" height="250">
<param name="movie" value="https://www.youtube.com/v/vxAU88LxLis?version=3&hl=en_US&fs=1&rel=0" />
<param name="wmode" value="opaque" />
<param name="quality" value="high" />
<param name="bgcolor" value="#E9E9E9" />
<param name="allowfullscreen" value="false" />
<param name="allowscriptaccess" value="never" />
</object>
<!-- End Flash Here -->
<p>Aliquatpede id pellus elit quis in nec consectetuer mattis duis in. Ipsumet ris morbi quis ac nulla aenean trisuscelerit nonummy augue et.</p>
<p class="readmore">Apply To The University Today »</p>
</div>
<div class="holder last">
<h2>Student & Staff Representatives</h2>
<ul class="staffmembers">
<li class="clear"><img class="imgl" src="images/11.jpg" alt="" />
<div class="fl_left">
<p><strong>Principals Name Here</strong></p>
<p>Principal / Headmaster</p>
<p>View Full Profile »</p>
</div>
</li>
<li class="clear"><img class="imgl" src="images/12.jpg" alt="" />
<div class="fl_left">
<p><strong>Another Name Goes Here</strong></p>
<p>Head of Student Access</p>
<p>View Full Profile »</p>
</div>
</li>
<li class="clear"><img class="imgl" src="images/13.jpg" alt="" />
<div class="fl_left">
<p><strong>Yet Another Name Here</strong></p>
<p>Student Union Representative</p>
<p>View Full Profile »</p>
</div>
</li>
</ul>
</div>
</div>
<!-- ###### -->
</div>
<!-- ####################################################################################################### -->
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row4">
<div id="footer" class="clear">
<!-- ####################################################################################################### -->
<div class="footbox">
<h2>Quick Links</h2>
<ul>
<li>» Homepage</li>
<li>» Contact Us</li>
<li>» Sitemap</li>
<li>» Privacy Policy</li>
<li>» Terms of Use</li>
<li>» Copyright Information</li>
<li>» Website Matters</li>
</ul>
</div>
<div class="footbox">
<h2>How To Find Us</h2>
<address>
Address Line 1<br />
Address Line 2<br />
Town/City<br />
Postcode/Zip<br />
<br />
Tel: xxxx xxxx xxxxxx<br />
Email: contact#domain.com
</address>
</div>
<div class="fl_right">
<div id="social">
<h2>Connect With Us</h2>
<ul>
<li><img src="images/social/facebook.gif" alt="" /></li>
<li><img src="images/social/twitter.gif" alt="" /></li>
<li><img src="images/social/flickr.gif" alt="" /></li>
<li><img src="images/social/youtube.gif" alt="" /></li>
<li class="last"><img src="images/social/rss.gif" alt="" /></li>
</ul>
</div>
<div id="newsletter" class="clear">
<form action="#" method="post">
<fieldset>
<legend>Subscribe To Our Newsletter:</legend>
<input type="text" value="Enter Email Here…" onfocus="this.value=(this.value=='Enter Email Here…')? '' : this.value ;" />
<input type="text" id="subscribe" value="Submit" />
</fieldset>
</form>
</div>
</div>
<!-- ####################################################################################################### -->
</div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper">
<div id="copyright" class="clear">
<p class="fl_left">Copyright © 2011 - All Rights Reserved - Domain Name</p>
<p class="fl_right">Template from Moban</p>
</div>
</div>
</body>
</html>

You can add a wrapper class to the body.
.wrapper {
margin: 0 auto;
max-width: 1200px;
}

Related

href to style html only works in Chrome [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I am building a webpage from a template found online, and all my htmls in the webpage refer to my styles page. It works just as I hoped it would in Chrome (and I assume also in Safari and Firefox but have not checked) but in Internet Explorer the index.html seems to not want to access the styles page at all and the default_controls.html only partially. I am not using much of the template's styles page, making a lot of the styles page obsolete. It could also be that the webpage is not published yet.I am quite new to HTML (I'm more of a Java guy) but if possible please help!
My styles page:
<!--/*-------------------------------------------------
GLOBALS CLASSES
-------------------------------------------------*/-->
*{padding:0; margin:0;}
body{ font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#1491c1; background:url(../images/bg.jpg) repeat;}
img{border:none;}
h1{ font-family: 'Droid Serif', serif; font-weight:normal; color:#fff;}
h2{ font-family: 'Droid Serif', serif; font-weight:normal; color:#1491c1; font-size:18px;}
P{ line-height:20px;}
a{text-decoration:none; color:#1491c1;}
a:hover{color:#fff;}
<!--/*-------------------------------------------------
GENERAL CLASSES
-------------------------------------------------*/-->
.mar-top{ margin-top:40px;}
.mar-top30{ margin-top:30px;}
.mar-bottom{ margin-bottom:40px;}
.mar-Right{ margin-right:40px;}
.mar-right115{ margin-right:115px;}
.float-left{ float:left;}
.float-right{ float:right;}
.clearing { clear:both;}
.bor-bottm-non{border-bottom:none!important;}
.panel{}
.title{}
.content{}
.wrap{width:960px; margin:0 auto;overflow:hidden; background:url(../images/page-bg.jpg);}
.page{ width:580px; margin:0 auto;overflow:hidden; padding-bottom:50px;}
.page-content{ width:580px; margin:0 auto;overflow:hidden; padding-bottom:30px; padding-top:30px;}
.block{padding:20px 20px 20px 20px; margin:0 auto;}
.block2{padding:20px 20px 20px 20px; margin:0 auto;}
.button a{text-decoration:none; display:block; width:70px; height:30px; background:#1491c1; color:#ffffff; font-family:Arial, Helvetica, sans-serif; line-height:30px; text-align:center;}
.button a:hover{ background:#0e5295;}
<!--/*-------------------------------------------------
CONTENT CLASSES
-------------------------------------------------*/-->
.page-content{ width:580px; margin:0 auto;overflow:hidden; padding-bottom:30px; padding-top:30px;}
.page-content .content h3{ padding-bottom:20px;font-family: 'Droid Serif', serif; font-weight:normal; color:#fff; font-size:16px;}
.page-content .content p{ padding-bottom:15px;}
<!--/*-------------------------------------------------
HEADER CLASSES
-------------------------------------------------*/-->
.header-wrap{ background:#083266; height:162px;}
.header{ width:1860px; margin:0 auto;}
.logo{ float:left; background:#1491c1; width:300px; float:left;}
.logo h1{font-size:52px; text-align:center; padding:52px 0px 50px 0px;}
.menu{ float:left;}
.menu ul li{ list-style:none; float:left; border-right:#093e76 solid 1px; padding:115px 20px 30px 20px;}
.menu ul li a{ text-decoration:none; color:#80d2f8; font-size:14px; text-align:center;}
.menu ul li a:hover{ color:#1491c1;}
.menu ul li a.active{ color:#1491c1;}
<!--/*-------------------------------------------------
LEFTCOL CLASSES
-------------------------------------------------*/-->
.leftcol{ float:left; width:300px; overflow:hidden;}
.leftcol .title{ margin-bottom:25px;}
.leftcol .content ul li{ list-style:none; border-bottom:#0c4680 solid 1px; line-height:40px;}
.leftcol .content ul li a{ text-decoration:none; color:#1491c1;}
.leftcol .content ul li a:hover{color:#80d2f8;}
.leftcol .panel img{ float:left; border:#fff solid 4px; margin:9px 20px 0px 0px;}
.leftcol .panel .content{ color:#1491c1; overflow:hidden;}
.leftcol .panel .content .button a{ width:53px; height:24px; line-height:24px; float:left; margin:15px 0px 20px 0px;}
.block2 .panel{border-bottom:#0c4680 solid 1px; margin-bottom:18px;}
<!--/*-------------------------------------------------
RIGHT CLASSES
-------------------------------------------------*/-->
.rightcol{ float:left; width:660px; overflow:hidden;}
.rightcol .title{ margin-bottom:25px;}
.rightcol .button{ margin-top:0px;}
.rightcol img{ float:left; margin-right:40px;}
.rightcol .content p{ padding-bottom:30px;}
.button2 a{text-decoration:none; display:block; width:70px; height:30px;
background:#1491c1; color:#ffffff; font-family:Arial, Helvetica, sans-serif; line-height:30px; text-align:center; float:left;}
.button2 a:hover{ background:#0e5295;}
<!--/*-------------------------------------------------
BOX CLASSES
-------------------------------------------------*/-->
.box{ width:230px; background:#083266; padding:20px 20px 35px 20px; float:left;}
.box img{ margin-bottom:25px;}
.box .title{margin-bottom:20px;}
.box .title h1{ font-size:20px; font-weight:normal;}
<!--/*-------------------------------------------------
CONTACT FORM CLASSS
-------------------------------------------------*/-->
.contact-form { background:#0d3d78; padding:30px; width:440px; float:left;}
.contact-form label {display: block; padding:10px 0 10px 0;}
.contact-form label span {display: block; color:#fff;font-size:14px; float:left; width:80px; text-align:left; padding:5px 20px 0 0; font-family: 'Droid Serif', serif;}
.contact-form .input_text {padding:10px 10px;width:318px;background:#07366b; border:none; color:#fff; outline:none;}
.contact-form .message{padding:10px 10px;width:318px; background:#07366b; border:none; overflow:hidden;height:150px; color:#fff; font-size:14px; outline:none;}
.contact-form .button{padding:8px;background:#1491c1; color:#ffffff; text-transform:uppercase; font-family:'Oswald', sans-serif;border:0px solid;margin-left:100px;margin-top:20px;}
.address { float:left; width:250px; margin-left:30px; margin-top:50px;}
.address .panel { border:none; color:#fff;}
.address .panel .title h1 { color:#1491c1; padding-bottom:10px;}
.address .panel .content p span { color:#fff;}
.address .panel .content p .number{ font-size:15px;}
<!--/*-------------------------------------------------
FOOTER CLASSES
-------------------------------------------------*/-->
.footer-wrap{ background:#1491c1; overflow:hidden;}
.footer{ width:960px; margin:0 auto; padding:40px 0px 50px 0px; overflow:hidden;}
.footer .bolg{ width:598px; float:left;}
.footer .panel{ float:left; width:230px;}
.footer .title{ border-bottom:#107eb4 solid 1px; padding-bottom:20px; margin-bottom:30px;}
.footer .title h1{ font-size:20px;}
.footer .panel .content ul li{ float:left; list-style:none; color:#062c5b; font-weight:bold;}
.footer .panel .content p{ color:#fff; font-size:12px; line-height:inherit; padding-top:20px; clear:both;}
.footer .panel .content p a{color:#062c5b; text-decoration:none;}
.footer .panel .content p a:hover{ color:#fff;}
.footer .panel .content p span{ color:#062c5b; font-weight:bold; font-size:12px;}
.footer .quickcontact{ width:270px; float:right;}
My index.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>EMS WebGIS Help Center: Home</title>
<link href="http://fonts.googleapis.com/css?family=Droid+Serif" rel="stylesheet" type="text/css">
<link href="Styles.html" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header-wrap">
<div class="header">
<div class="logo"><h1>Help Center</h1></div>
<div class="menu">
<ul>
<li><a href="index.html" >Home</a></li>
<li>Default & Controls</li>
<li>Table of Contents</li>
<li>Identify</li>
<li>Draw</li>
<li>Measure</li>
<li>Add File to Map</li>
<li>Print</li>
<li>Bookmarks</li>
<li>Overview & Basemaps</li>
<li>Users & Login</li>
<li>App Launcher</li>
</ul>
</div>
</div>
</div><!---header-wrap--->
<div class="wrap">
<div class="leftcol">
<!-- <div class="block">
<div class="panel">
<div class="title">
<h1></h1>
</div>
<div class="content">
<ul>
<li>Sed do eiusmod tempor incididunt ut </li>
<li>Praesent sit amet purus ac ligula tem </li>
<li>Nam convallis mauris id eros condiment</li>
<li>Donec a sem sit amet neque iaculis p</li>
<li>Duis sit amet augue ut urna auctor rut</li>
<li>Ut fringilla scelerisque enim, nec he</li>
<li class="bor-bottm-non">Donec vitae magna in turpis congue</li>
</ul>
</div>
</div>
</div> -->
<div class="block2">
<div class="panel">
<img src="images/Calleguas-logo-80px.png" alt="image" />
<div class="content">
<p>Go to the WebGIS program</p>
<div class="button">Go</div>
</div>
</div>
</div>
<div class="block2">
<div class="panel">
<img src="images/EMSLogoo.gif" alt="image" />
<div class="content">
<p>Visit the EMS Website</p>
<div class="button">Go</div>
</div>
</div>
</div>
</div><!---leftcol--->
<div class="rightcol">
<!--<div class="banner"><img src="images/bannerInsert.png" alt="banner" /></div> -->
<div class="page">
<div class="panel mar-bottom">
<div class="title">
<h1></h1>
<h2></h2>
</div>
<div class="content">
<p> <h2>Welcome to the Help Center for the EMS WebGIS program for the Calleguas Municipal Water District. </h2> <br>
<h4>This Help Center provides walkthroughs and information to help users find their way in and out of the WebGIS program.
This page provides the basics to navigation along the map, identification of objects, and much more.
With the help of the EMS WebGIS Help Center, you can become comfortable with the program and its resources.</h4>
<p> <h4>The EMS WebGIS Help Center provides assistance in the following subjects of the program:</h4>
</div>
</div>
<!--Index boxes-->
<div class="box mar-Right">
<div class="panel">
<img src="images/mouse.png" alt="image" />
<div class="title">
<h1>Default & Controls</h1>
</div>
<div class="content">
<p>Familiarize yourself with the program's basics in the map's layout and location of tools, zoom, pan, setting to default and other controls.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box">
<div class="panel">
<img src="images/table_of_contents.png" alt="image" />
<div class="title">
<h1>Table of Contents</h1>
</div>
<div class="content">
<p>Learn to access the map's sliders that change appearances in bases and water lines along with toggling items' appearance on the map.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box mar-Right">
<div class="panel">
<img src="images/identify.png" alt="image" />
<div class="title">
<h1>Identify</h1>
</div>
<div class="content">
<p>Master selection, identification, and access of specific information.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box">
<div class="panel">
<img src="images/draw.png" alt="image" />
<div class="title">
<h1>Draw</h1>
</div>
<div class="content">
<p>Discover addition of graphics such as lines, circles, rectangles, and text.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box mar-Right">
<div class="panel">
<img src="images/measure.png" alt="image" />
<div class="title">
<h1>Measure</h1>
</div>
<div class="content">
<p>Learn the controls to ascerain length, area, perimeter and more of any selected polygon, line, or circle.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box">
<div class="panel">
<img src="images/add_file.png" alt="image" />
<div class="title">
<h1>Add File to Map</h1>
</div>
<div class="content">
<p>Become an expert at knowing which files to add to the map and browsing your computer for a file to be added to the map.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box mar-Right">
<div class="panel">
<img src="images/print.png" alt="image" />
<div class="title">
<h1>Print</h1>
</div>
<div class="content">
<p>Learn customization of a capture of the map, saving the page as a pdf, and printing it. </p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box">
<div class="panel">
<img src="images/bookmarks.png" alt="image" />
<div class="title">
<h1>Bookmarks</h1>
</div>
<div class="content">
<p>Figure out how to create, edit, and delete custom presets of specific areas of the map.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box mar-Right">
<div class="panel">
<img src="images/overview_basemaps.png" alt="image" />
<div class="title">
<h1>Overview & Basemaps</h1>
</div>
<div class="content">
<p>Discover the overview window and learn to toggle it, and customize your map to your satisfaction using basemaps.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box">
<div class="panel">
<img src="images/users_login.png" alt="image" />
<div class="title">
<h1>Users & Login</h1>
</div>
<div class="content">
<p>Create an account or log in, customize your account, and configure account user settings.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<div class="box mar-Right">
<div class="panel">
<img src="images/app_launcher.png" alt="image" />
<div class="title">
<h1>App Launcher</h1>
</div>
<div class="content">
<p>Utilize the potential of the program's applications such as Screen Capture and Spreadsheet.</p>
<div class="button" align="center">Go</div> <p />
</div>
</div>
</div>
<!--End index boxes-->
<!-- <div class="clearing"></div> ---Image6 clearing below boxes, commented out---
<div class="panel mar-top">
<img src="images/image6Insert.png" alt="image" />
<div class="content">
<p>Donec eros lectus, elementum quis commodo a, lobortis ut mauris. Duis leo risus, fermentum facilisis auctor tempus, elementum ut enim. Maecenas ornare tincidunt semper. Nulla facilisi. </p>
<p>In tristique tellus vel nisi sagittis id bibe ndum tellus varius auris conva</p>
<div class="button2">More Info</div>
</div>
</div>-->
</div> <!---page--->
</div><!---Rightcol--->
</div>
<div class="footer-wrap">
<div class="footer">
</div>
</div><!---footer--->
</body>
</html>
Thanks in advance.
In your HTML index page you have
<link href="Styles.html" rel="stylesheet" type="text/css" />
it should be
<link href="Styles.css" rel="stylesheet" type="text/css" />

margin-top moving along with the #section div?

I'm trying to move the class .column below 50px, but margin-top: 50px moving along with the #section. Why is that and how it can be fixed?
*{ padding:0; margin:0; }
body { width:100%; font-family:"Source Sans Pro" }
#section { height:400px; background-color:#383838; color:White; }
span { font-size:40px; }
.column { width: 300px; border: 2px solid yellow; margin-left:40px; margin-top:50px; }
<html>
<head>
<title>Breadth</title>
<link rel="Stylesheet" type="text/css" href="breadth.css" />
<link href="fonts.css" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />
</head>
<body>
<div id="main">
<div id="section">
<div class="column">
<span class="icon icon-cogs"></span>
<h2>Maecenas lectus sapien</h2>
<p>In posuere eleifend odio. Quisque semper augue mattis wisi. Pellentesque viverra vulputate enim. Aliquam erat volutpat.</p>
</div>
</div>
</div>
</body>
</html>
You can apply padding-top: 50px to #section rather than margin-top to .column
Referring from Mozilla Documentation:
If there is no border, padding, inline content, or clearance to separate the margin-top of a block from the margin-top of its first child block, or no border, padding, inline content, height, min-height, or max-height to separate the margin-bottom of a block from the margin-bottom of its last child, then those margins collapse. The collapsed margin ends up outside the parent.
Read about Margin Collapsing for more details.
*{ padding:0; margin:0; }
body{ width:100%; font-family:"Source Sans Pro" }
#section{height:400px; background-color:#383838; color:White; padding-top: 50px; }
span{ font-size:40px; }
.column{ width: 300px; border: 2px solid yellow; margin-left:40px;}
<html>
<head>
<title>Breadth</title>
<link rel="Stylesheet" type="text/css" href="breadth.css" />
<link href="fonts.css" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />
</head>
<body>
<div id="main">
<div id="section">
<div class="column">
<span class="icon icon-cogs"></span>
<h2>Maecenas lectus sapien</h2>
<p>In posuere eleifend odio. Quisque semper augue mattis wisi. Pellentesque viverra vulputate enim. Aliquam erat volutpat.</p>
</div>
</div>
</div>
</body>
</html>
If you want to use margin-top then give display:block to parent div and display:inline-block to child div.
See here
Fore more info read here
Edited CSS
*{ padding:0; margin:0; }
body{ width:100%; font-family:"Source Sans Pro" }
#section{height:400px; background-color:#383838; color:White;display:block; }
span{ font-size:40px; }
.column{ width: 300px; border: 2px solid yellow; margin-left:40px; margin-top:50px;display:inline-block;}
You should use padding-top for #section like in the fiddle and remove margin-top from child. Since margins will collapse to each other, it's better not to use it for positioning elements. refer this: Margin goes outside div when border is removed
#section {
padding-top: 40px;
...
}
Another approach is use the same code but add overflow:auto to #section like this:
#section {
overflow:auto;
...
}
There's another solutions too like using border on parent, but these are more like hacks since we used margins for positioning.
*{ padding:0; margin:0; }
body { width:100%; font-family:"Source Sans Pro" }
#section { height:400px; background-color:#383838; color:White; padding-top:50px;}
span { font-size:40px; }
.column { width: 300px; border: 2px solid yellow; margin-left:40px; }
<html>
<head>
<title>Breadth</title>
<link rel="Stylesheet" type="text/css" href="breadth.css" />
<link href="fonts.css" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />
</head>
<body>
<div id="main">
<div id="section">
<div class="column">
<span class="icon icon-cogs"></span>
<h2>Maecenas lectus sapien</h2>
<p>In posuere eleifend odio. Quisque semper augue mattis wisi. Pellentesque viverra vulputate enim. Aliquam erat volutpat.</p>
</div>
</div>
</div>
</body>
</html>

font roboto doesn't work

I am trying to add the roboto-regular and roboto-light but it doesn't seem to work, i don't now how to do it so I'm asking for guidance...
This is a link to my code
https://jsfiddle.net/omer1234/rmje7xz3/12/
HTML:
<!doctype html>
<html ng-app="MyApp">
<head>
<link rel="stylesheet" href="noteBack.css">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/angular/bower-material/master/angular-material.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-route.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-messages.min.js"></script>
<script src="https://cdn.rawgit.com/angular/bower-material/master/angular-material.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-114/assets-cache.js"></script>
</head>
<body>
<div class="container-box ">
<header><span>Note Details</span></header>
<div class="sub-header"><span>Friday 25.7.13 </span></div>
<div class="sub-container-box opacity-affect">
<div class="dialog-box"><!--first white box inside the note-->
<div class="dialog-box-circle"></div>
<span class="glyphicon glyphicon-option-vertical dialog-vertical-menu"></span>
<span class="dialog-box-name">Lea Poran -<select>
<option>#private</option>
<option>#public</option>
</select>
</span>
<span class="dialog-box-day">2d ago</span>
<div class="dialog-box-text">Don't forget to bring the new calender for the meeting.</div>
</div>
<div class="dialog-box"> <!--second white box inside the note-->
<div class="dialog-box-circle"></div>
<span class="glyphicon glyphicon-option-vertical dialog-vertical-menu"></span>
<span class="dialog-box-name">You -<select>
<option>#private</option>
<option>#public</option>
</select>
</span>
<span class="dialog-box-day">2d ago</span>
<div class="dialog-box-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque laoreet ex vitae mi venenatis odio felis convallis. Praesent ut consequat orci, amet elit mollis molestie. Curabitur rhoncus enim </div>
</div>
<div class="dialog-box"> <!--third white box inside the note-->
<div class="dialog-box-circle"></div>
<span class="glyphicon glyphicon-option-vertical dialog-vertical-menu"></span>
<span class="dialog-box-name">You -<select>
<option>#private</option>
<option>#public</option>
</select>
</span>
<span class="dialog-box-day">3d ago</span>
<div class="dialog-box-text">In hac habitasse platea dictumst. Pellentesque scelerisque auctor dui. Pellentesque eget eros pretium, sagittis tortor at, tempor turpis. Morbi porttitor nulla urna, sed tincidunt eros mollis eu. Nam gravida est sit </div>
</div>
<div class="dialog-box-date"> <!--gray box - contains the date-->
<span class="dialog-box-date-text">In hac habitasse platea dictumst. Pellentesque scelerisque auctor dui. Pellentesque eg
</span>
</div>
<div class="dialog-box"><!--replay of the first white box inside the note-->
<div class="dialog-box-circle"></div>
<span class="glyphicon glyphicon-option-vertical dialog-vertical-menu"></span>
<span class="dialog-box-name">Lea Poran -<select>
<option>#private</option>
<option>#public</option>
</select>
</span>
<span class="dialog-box-day">2d ago</span>
<div class="dialog-box-text">Don't forget to bring the new calender for the meeting.</div>
</div>
<img src="D:\Meeter1\first assaiment home\attach.png">
</div> <!--close sub-container-->
<img src="D:\Meeter1\first assaiment home\attach.png">
</div>
</body>
</html>
css:
.container-box{
/*position:absolute;*/
width:382px;
height:529px;
background-color:lightgray;
overflow:hidden;
border:1px solid #cccccc;
margin:auto;
}
/* .opacity-affect{ //After button click blur the background
opacity:0.5;
} */
header{ /*the red head line*/
position:relative;
width:100%;
height:41px;
color:white;
background-color:#de4b4b;
font-weight: bold;
font-size:14px;
margin:auto;
}
header span{ /*text inside the red head line*/
display:inline-block;
padding-left:148px;
padding-top:14px;
padding-bottom:14px;
}
.sub-header{ /*white sub head line*/
position:relative;
width:100%;
height:37px;
background-color:white;
font-size:10px;
color:#454545;
font-family:'roboto_regular';
}
.sub-header span{ /*text inside the white sub head line*/
display:inline-block;
padding-top:14px;
padding-left:10px;
}
.dialog-box{ /*the white boxes inside the note main*/
position:relative;
width:365px;
background-color:white;
margin: 0px 8px 10px 8px;
border:1px solid #cccccc;
}
.dialog-box-circle{
display:inline-block;
float:left;
width:35px;
height:35px;
border-radius:30px;
background-color:#cccccc;
margin:15px 10px 17px 15px;
vertical-align:middle;/*allow text to appear next to the circle div */
}
.dialog-box-name{
display:inline-block;
color:#6495ED;
font-size:12px;
margin-top:21px;
font-weight:bold;
}
.dialog-box-text{
color:#040404;
font-size:10px;
font-family:'roboto_light';
line-height:9px; /*the space between the line*/
margin-left:15px;
margin-bottom:15px;
margin-top:17px;
margin-right:17px;
bottom:0;
left:0;
}
.dialog-box-name select {
border:0px;
font-size:10px;
font-family:'roboto_regular';
color:#454545;
cursor: pointer;
}
.dialog-box-day{
display:block;
font-size:9px;
font-family:'roboto_regular';
margin:0px;
font-weight:bold;
}
.dialog-vertical-menu{
float:right;
margin:8px;
}
.dialog-box-date{ /*the gray box inside the note main*/
position:relative;
width:365px;
height:37px;
margin: 0px 8px 10px 8px;
background-color:#cccccc;
}
.dialog-box-date-text {
display:inline-block;
font-family:'roboto_regular';
font-size:9px;
color:#000000;
margin-left:15px;
margin-top:15px;
}
#font-face {
font-family: 'RobotoLight';
src: url('fonts/RobotoLight.eot');
src: url('fonts/RobotoLight.eot') format('embedded-opentype'),
url('fonts/RobotoLight.woff2') format('woff2'),
url('fonts/RobotoLight.woff') format('woff'),
url('fonts/RobotoLight.ttf') format('truetype'),
url('fonts/RobotoLight.svg#RobotoLight') format('svg');
}
#font-face {
font-family: 'RobotoRegular';
src: url('fonts/RobotoRegular.eot');
src: url('fonts/RobotoRegular.eot') format('embedded-opentype'),
url('fonts/RobotoRegular.woff2') format('woff2'),
url('fonts/RobotoRegular.woff') format('woff'),
url('fonts/RobotoRegular.ttf') format('truetype'),
url('fonts/RobotoRegular.svg#RobotoRegular') format('svg');
}
You can remove all the #font-face clauses and just use this property on whatever class you want to use Roboto:
font-family: 'Roboto', sans-serif;
If you're not sure whether it works at all anywhere, try adding this CSS for debugging:
body{
font-family: 'Roboto', sans-serif;
}
Also, always put your font includes at the top of your <head> element, above your CSS include, like so:
<!DOCTYPE HTML>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> <!-- Include font first -->
<link href="style.css" rel="stylesheet"> <!-- Then include stylesheet -->
</head>
<body>
</body>
</html>
Your font-family settings should just be :
font-family: 'Roboto', sans-serif;
And you set different weights for your font using:
font-weight: 400;
or
font-weight: 700;

unknown error into my code

mistakenly i used this line of code
<style type="text/css">
into my Top_menu.css file (caused by copy and past) and forget to remove it. now when i want to remove all of my code would be crashed!!!
here my Top_menu.css file:
<style type="text/css">
#centeredmenu {
float:left;
width:700px;
background:#fff;
overflow:hidden;
position:relative;
}
#centeredmenu ul {
clear:left;
float:left;
list-style:none;
margin:0;
padding:0;
margin-left:330px;
margin-top:72px;
text-align:center;
}
#centeredmenu ul li {
display:block;
float:left;
list-style:none;
margin:0 10px 0 10px;
padding:0;
position:relative;
}
#centeredmenu ul li a {
display:block;
margin:0 0 0 1px;
padding:20px 10px;
color:#000;
text-decoration:none;
line-height:1.3em;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
#centeredmenu ul li a:hover {
background:#369;
background:#212121;
color:#fff;
padding-top:15px;
}
#centeredmenu ul li a.active,
#centeredmenu ul li a.active:hover {
color:#fff;
background:#212121;
font-weight:bold;
padding-top:15px;
}
#spread
{
position:relative;
top:128px;
width:955px;
height:340px;
background-color:#212121;
}
here my style.css file:
#charset "utf-8";
/* CSS Document */
#import 'reset.css';
body
{background:#e8e8e8 url(../images/Back.png) top repeat-x;
}
#outer
{
width:955px;
height:1200px;
margin:0 auto;
}
#header
{
background:url(../images/header.png) top no-repeat;
height:143px;
}
#logo h1
{
text-indent:-9999px;
}
#main_content
{
margin-top:128px;
height:400px;
background-color:#ffffff;
}
#left_side {width:550px; height:auto; float:left; }
#left_side h2
{
font-size:30px;
color:#2d5a65;
padding-top:30px;
padding-left:30px;
}
#left_side span
{
font-size:12px;
font-style:italic;
color:#bbbaba;
padding-left:30px;
}
#left_side h4
{
font-size:12px;
font-weight:bold;
color:#6f6f6f;
padding-top:30px;
padding-left:30px;
}
#left_side div
{
font-size:12px;
color:#6f6f6f;
padding-top:30px;
padding-left:30px;
line-height:20px;
}
#left_side a
{
font-size:12px;
color:#6f6f6f;
padding-top:40px;
padding-left:30px;
text-decoration:none;
}
#right_side
{
background-color:#f6f6f6;
width:295px;
height:300px;
border:15px solid #e7e7e7;
float:right;
margin-top:30px;
margin-right:40px;
}
#inside_right{ height:250px; margin:20px 10px 20px 10px; }
#inside_right span
{
font-size:18px; color:#7c7c7c;
}
#inside_right hr{width:200px; color:#dadada; margin-top:20px;}
#inside_right img{padding-top:30px; padding-right:10px; float:left;}
#inside_right div{width:250px; padding-top:25px; line-height:22px; height:150px; font-size:12px;}
#inside_right a{font-size:12px; font-weight:bold; text-decoration:none; color:#6d6d6d; float:right; padding-right:10px;}
/*Above footer*/
#above_footer{height:300px; border-top:10px #5a5a5a solid; border-bottom:10px #666666 solid; background-color:#656565;}
#f_left{width:230px; height:250px; margin-left:20px; margin-top:20px; float:left;}
#f_center{width:230px; height:250px;margin-left:100px; margin-top:20px; float:left; ;}
#f_right{width:230px; height:250px; margin-right:20px; margin-top:20px; float:right; }
.header_footer{font-size:20px; color:#ffffff; font-style:italic; margin-bottom:15px;}
.bold_footer{font-size:11px; color:#ffffff; font-weight:bold; padding-top:10px; clear:left;}
.reg_footer{font-size:11px; color:#FFF; line-height:15px; padding-top:5px; clear:left; }
.footer_line{width:200px; float:left; }
#below_footer{background-color:#1a1a1a; height:50px;}
.footer_color{color:#989898; font-size:11px;}
#copy{ padding:20px; float:left;}
/*footer menu*/
#below_footer ul{float:right; padding:20px;}
#below_footer ul li{float:left; }
#below_footer ul li a{ text-decoration:none; color:#989898; padding-left:2px; padding-right:2px;}
here my html file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="css/Top_menu.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="outer">
<div id="header">
<div id="logo">
<h1>cleanfolio</h1>
</div><!--End Logo-->
<div id="centeredmenu">
<ul>
<li><a href="#" class="active" >Home</a></li>
<li><a href="#" >portfolio</a></li>
<li><a href="#" >blog</a></li>
<li>About Us</li>
<li>Service</li>
<li>Contact Us</li>
</ul>
</div> <!-- end Center menu-->
<div id="spread">
</div> <!-- End Spread -->
<div id="content">
<div id="main_content">
<div id="left_side">
<h2>Welcome to our company</h2>
<span>Lorem Ipsum is simply dummy text of the printing and typesetting</span>
<h4>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</h4>
<div>
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.<br/><br/>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
</div><!--end div-->
Read More>>
</div><!--End Left_side-->
<div id="right_side">
<div id="inside_right">
<span>Testimonials:</span>
<hr />
<img src="images/unknown.png" alt="unknown"/>
<div>It is a long established fact that a
reader will be distracted by the readable content of a page when looking at its layout. Content here, content here', making it look like readable English."</div><!--End Div-->
-John Smith, webdesigner
</div><!--End Inside right-->
</div><!--End right_side -->
</div> <!--end main_content-->
</div><!--End Content-->
</div><!--End Header-->
<div id="above_footer">
<div id="f_left">
<div class="header_footer">Events < Updates</div>
<hr class="footer_line" />
<div class="bold_footer">
Posted on 20 May 09
</div><!--end div class bold footer-->
<div class="reg_footer">Listuem Names ligula a blandit ornare ligula a quis bibendum elit anten ecm etus blandit
</div><!--End Div with class reg_footer-->
<hr class="footer_line" />
<div class="bold_footer">
Posted on 24 May 09
</div><!--end div with bold footer class-->
<div class="reg_footer">
Nulla elit porttitor tellus quis bibendum elit ante nec metus.
</div><!--end reg footer class-->
<hr class="footer_line" />
</div><!--End Footer left-->
<div id="f_center">
<div class="header_footer">What We Do</div><!--End header footer-->
<hr class="footer_line" />
<div class="bold_footer">
It has survived not only five centuries, but also
the leap into electronic typesetting, remaining essentially unchanged.
</div><!--End bold footered class-->
<br />
<div class="reg_footer">
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
and more recently with desktop publishing software
like Aldus PageMaker including versions of Lorem
Ipsum.
</div><!--End reg footer-->
</div><!--End Footer center-->
<div id="f_right">
<div class="header_footer">Get in touch!</div><!--End header_footer class-->
<hr class="footer_line" />
<div class="reg_footer">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</div><!--End reg_footer-->
<hr class="footer_line" />
<div class="bold_footer">+123456789</div><!--End bold one-->
<div class="bold_footer">+123456789</div><!--End bold one-->
<div class="bold_footer">company#domainname.com</div><!--End bold one-->
</div><!--End Footer right-->
</div><!--End Above footer-->
<div id="below_footer">
<div id="copy" class="footer_color">© Copyright 2009. Your Site Name Dot Com.</div><!--End copy -->
<ul class="footer_color">
<li>All Rights Reserved </li>
<li>Home<samp>|</samp></li>
<li>Contact<samp>|</samp></li>
<li>RSS</li>
</ul>
</div><!--End Below footer-->
</div> <!--End outer-->
</body>
</html>
That line should not be in the css file. You should include your css file with <link rel="stylesheet" type="text/css" href="Top_menu.css" /> in your main html file between <head> and </head>.

Single tag causes chrome to break?

Okay so I have run into this weird bug that I have no clue how to proceed with.
I am building a fairly basic static website, just HTML/CSS and a bit of Jquery for slight animations nothing big.
The html is for the page is
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Quick Metal Finishers</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/style.css">
<script src="js/libs/modernizr-2.5.3.min.js"></script>
</head>
<body>
<header id="topHeader">
<div id="topName">
<h1>Quick Metal Finishers</h1>
<h2>Electroplating | Powder Coating | Metal Painting</h2>
</div>
<div id="topContact">
<h2>Questions?</h2>
<h1>EMAIL NOW: <strong>info#quickmetalfinishers.com</strong></h1>
</div>
<div class="clearfix"> </div>
</header>
<hr/>
<nav id="topNav">
<ul>
<li>HOME</li>
<li>ABOUT</li>
<li>SERVICES</li>
<li>CONTACT</li>
</ul>
</nav>
<div role="main">
<!--Awesome image slidy thingy-->
<div id='coin-slider'>
<a href="" target="_blank">
<img src='images/main_img1.jpg' >
<span>
Description for img01
</span>
</a>
<a href="">
<img src='images/main_img2.jpg' >
<span>
Description for imgN
</span>
</a>
</div>
<!--Next up we have the business blurb-->
<div id="mainCatchy">
<div id="mainCatchyLine">
Choose Us for we are the best this should be slighly long.
</div>
<div id="mainCatchyDescription">
<p>
Fusce varius euismod lorem, nec semper ante ullamcorper condimentum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu tortor eget nunc blandit rutrum. Praesent hendrerit ante sed nulla molestie gravida vestibulum.
</p>
<p>
Ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia. Nam quis cursus massa. Dapibus, turpis quis ultricies tincidunt , elit augue facilisis turpis, et suscipit nibh eros eget tortor. Vivamus eleifend dictum.
</p>
</div>
<div class="clearfix"> </div>
</div>
</div>
<footer>
</footer>
<script src="js/libs/jquery-1.7.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/script.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#coin-slider').coinslider({ width: 960, navigation: false, delay: 5000 });
});
</script>
</body>
</html>
The CSS is
html{
background:hsl(50, 7%, 84%) url(images/bg-body.png) repeat top left;
}
body{
width:960px;
margin:4em auto;
background-color: #f9f9f9;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.85);
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.85);
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.85);
}
#topHeader{
font-family:Arial, Arial, Helvetica, sans-serif;
padding:4em 77px 0 77px ;
}
#topName{
width:auto;
float:left;
vertical-align:baseline;
}
#topName h1, #topName h2{
font-weight:normal;
font-size:14pt;
margin:0;
padding:0;
}
#topName h2{
font-size:10pt;
color:#808080;
}
#topContact{
width:auto;
float:right;
margin-top:3pt;
text-align:right;
}
#topContact h1, #topContact h2{
font-weight:normal;
font-size:10pt;
margin:0;
padding:0;
color:#808080;
}
#topContact strong{
color:#000;
}
/*Top Navigation*/
#topNav{
font-family:Arial, Arial, Helvetica, sans-serif;
padding:0 77px 0 77px ;
}
#topNav ul{
list-style-type:none;
margin:0 0 1em 0;
}
#topNav li{
display:inline;
margin-right:5ex;
}
#topNav a{
text-decoration:none;
font-size:11pt;
color:#808080;
}
#mainCatchy{
margin:2em 77px 0 77px;
padding:0;
}
#mainCatchyLine{
width:240px;
float:left;
font-family:'Open Sans', sans-serif;
font-size:16pt;
padding:20px 30px;
color:#333;
}
#mainCatchyDescription{
float:left;
width: 506px;
font-size:10pt;
color:#555;
}
/*Generic Styles*/
hr{
border:none;
border-top:1px dotted rgba(0,0,0,.2);
height:0;
width:98%;
margin:2em auto 0.7em auto;
}
The issue is the page doesn't render in chrome at all. The blue rotaty thing in the title bar just keeps spinning with nothing rendering.
Here's the kicker: If I remove the <p> tag from just that div and place the text either by itself or inside another <div>, chrome has no issue rendering it.
The page as of now works flawlessly in firefox.
I have no idea what might be causing this issue.
EDIT:
I have uploaded the code to
http://dm.finearts.yorku.ca/~raveesh/test/
Okay the issue seems to be dev version of chrome that I was using, it works fine on the regular channel version. There seem to be a lot of rendering bugs in the Dev channel.
Cheers,
-tR