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" />
Related
[how do I make something like this, I need it for a school project :)(https://i.stack.imgur.com/n86zT.png)
<div class = "content">
<p class = "title">Intro to HTML</p>
<p class = "text">Sample Subtitle</p>
<div>
<img class = "thumbnail" src="personalp.webp">
</div>
</div>
this is what i got
Try this:
.content {
background: #f0f0f0;
width: 100%;
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
justify-items: center;
padding: 1.5rem;
}
.text {
text-align: center;
}
<div class="content">
<div class="text">
<h1 class="title">Intro to HTML</h1>
<p class="text">Sample Subtitle</p>
</div>
<div>
<img class="thumbnail" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS4wGRN9XoPDaJKv2hBEKC0RDsWAoNSrYMlTw&usqp=CAU">
</div>
</div>
It's really difficult to give you an answer since we don't know what you will add to this basic template.
I agree with the grid solution and flex may help you to.
Please add more details about your whole project.
You don't tell anything about the manner of you want to align the elements to the top, if there will be additional content below this layout...
html body{
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
box-sizing: border-box;
}
.content{
display:flex;
padding:20px;
}
.leftColumn{
background-color:antiquewhite;
padding-left: 20px;
padding-right: 20px;
}
.title{
text-align: center;
font-size: 1.8em;
margin:0px;
}
.text{
text-align: center;
}
.lipsum{
font-style: italic;
}
.image{
border:1px solid #000000;
width:200px;
height:200px;
}
<div class = "content">
<div class="leftColumn">
<p class = "title">Intro to HTML</p>
<p class = "text">Sample Subtitle</p>
<p class = "lipsum">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id volutpat felis, ut maximus tellus. Quisque convallis accumsan volutpat. Etiam a eros quis tellus scelerisque elementum sed at nibh.
</p>
</div>
<div class="image">
<img class = "thumbnail" src="https://dummyimage.com/200x200/999999/fff.png" alt="image">
</div>
</div>
Have a nice day.
you can use inline CSS in your parent div like this:
<div style="width:800px;margin:0 auto;display: flex;flex-direction:row;align-items:center;justify-content: space-around">
<div>
<h1>title here</h1>
<p>Stuff inside paragraph</p>
</div>
<div>
Image here
</div>
</div>
This is your code :
<div class = "content">
<p class = "title">Intro to HTML</p>
<p class = "text">Sample Subtitle</p>
<div>
<img class = "thumbnail" src="personalp.webp">
</div>
</div>
You can add the title and subtitle inside a div like this :
<div class = "content">
<div class ="text-info>
<p class = "title">Intro to HTML</p>
<p class = "text">Sample Subtitle</p>
</div>
<div>
<img class = "thumbnail" src="personalp.webp">
</div>
</div>
Then you can use css to style the content as you want like this :
.content{
display:flex;
justify-content: center;
align-items : center;
}
It will move the titles on the left and image on the right side as you asked for.
If you need more help ask in the comments I will answer
Suppose image contain in DIV1 and Text Contain in DIV2.
Both Div1 and Div2 are float Left.So I want to hide the padded image.
As my contents of DIV2 are dynamic, so I don't want to set height in any div.
Even box-sizing:padding-box not worked in this code or browser.
My Desire Output like as below image by cropping the Monitor stand:
.monitor-area
{
background:#ebebeb;
height:auto;
}
.monitor-area:after
{
content:'';
display:block;
clear:both;
}
.monitor
{
width:50%;
float:left;
overflow:hidden;
}
.monitor img
{
width:100%;
}
.monitor-content
{
width:44%;
overflow:hidden;
float:right;
padding-right:2%;
}
.monitor-title
{
margin-top:80px;
}
.monitor-title h1
{
color:#333333;
font-size:30px;
font-weight:normal;
text-transform:uppercase;
}
.monitor-text
{
}
<section class="monitor-area">
<div class="monitor">
<img src="https://image.ibb.co/ioQ47Q/monitor.png" alt="448*250px" />
</div>
<div class="monitor-content">
<div class="monitor-title">
<h1>A CATCHY TITLE</h1></div>
<div class="monitor-text">
<p>Cursuspenatisaccum ut curabitur nulla tellus tor
ames a in curabitur pede. Idet mollisi eros dis orci
congue elis et curabitur consequam intesque.
Curabiturpisametur in ante.</p>
</div>
<div class="monitor-button">
<a href="">read more
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</section>
.monitor-area
{
background:#ebebeb;
height:auto;
}
.monitor-area:after
{
content:'';
display:block;
clear:both;
}
.monitor
{
width:50%;
float:left;
overflow:hidden;
max-height:205px
}
.monitor img
{
width:100%;
}
.monitor-content
{
width:44%;
overflow:hidden;
float:right;
padding-right:2%;
}
.monitor-title
{
margin-top:80px;
}
.monitor-title h1
{
color:#333333;
font-size:30px;
font-weight:normal;
text-transform:uppercase;
}
.monitor-text
{
}
<section class="monitor-area">
<div class="monitor">
<img src="https://image.ibb.co/ioQ47Q/monitor.png" alt="448*250px" />
</div>
<div class="monitor-content">
<div class="monitor-title">
<h1>A CATCHY TITLE</h1></div>
<div class="monitor-text">
<p>Cursuspenatisaccum ut curabitur nulla tellus tor
ames a in curabitur pede. Idet mollisi eros dis orci
congue elis et curabitur consequam intesque.
Curabiturpisametur in ante.</p>
</div>
<div class="monitor-button">
<a href="">read more
<i class="fa fa-angle-double-right"></i>
</a>
</div>
</div>
</section>
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;
}
I'm having trouble figuring out how to position items in HTML/CSS, as I'm pretty much a newb when it comes to coding. But I wanted to do this myself without paying a developer.
Basically, I want to create a 3 column width "How it works" with 3 elements(classes?) in each column. An Icon, the heading, and subheading.
It looks like this: https://www.screencast.com/t/KAKYgJQYVLS
Can someone point me in the direction of just getting the headings on top of one another and the each bullet points next to each other?
TIA!
Use <ul> and <li>
ul {
display: flex;
}
<ul>
<li>1. Heading 2 lines of text</li>
<li>2. Heading 2 lines of text</li>
<li>3. Heading 2 lines of text</li>
</ul>
You can try this one. If you want these bullets much bigger, you should replace these by using image or anything else.
* {
margin: 0;
}
ul {
display: flex;
list-style-image: url('http://icons.iconarchive.com/icons/paomedia/small-n-flat/32/sign-check-icon.png');
}
ul li {
margin: 20px;
}
<ul>
<li>
<h3>1. Heading</h3>
two lines of text
</li>
<li>
<h3>2. Heading</h3>
two lines of text
</li>
<li>
<h3>3. Heading</h3>
two lines of text
</li>
</ul>
You can use bootstrap
<div class="row">
<div class="col-sm-4">.col-sm-4</div>
<div class="col-sm-4">.col-sm-4</div>
<div class="col-sm-4">.col-sm-4</div>
</div>
If your starting out I would take a look at a framework like Bootstrap it makes this stuff a lot easier and has good examples of how to do things.
http://getbootstrap.com/
<div class="container">
<div class="row">
<div class="col-sm-4 text-center">
<h3>
heading 1
</h3>
<p>
sub heading
</p>
</div>
<div class="col-sm-4 text-center">
<h3>
heading 2
</h3>
<p>
sub heading
</p>
</div>
<div class="col-sm-4 text-center">
<h3>
heading 3
</h3>
<p>
sub heading
</p>
</div>
</div>
</div>
https://jsfiddle.net/vo1npqdx/475/
May be you would like to tweak with below HTML and CSS.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
* {
margin:0px;
padding:0px;
}
.wrapper {
width:100%;
float:left;
}
.center {
float:none;
margin:0px auto;
width:600px;
}
.content {
float:left;
width:100%;
}
.col-3 {
width:33%;
float:left;
}
.col-3 p {
text-align: justify;
padding: 5px;
}
.cell {
width: 100%;
float:left;
}
.rounded-icon {
width: 16px;
height: 16px;
border: 1px solid #a84909;
border-radius: 50%;
float:left;
margin-right: 5px;
margin-top: 4px;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="center">
<div class="content">
<div class="col-3">
<div class="cell">
<h3><div class="rounded-icon"></div>Heading 1</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lectus felis, tristique...</p>
</div>
</div>
<div class="col-3">
<div class="cell">
<h3><div class="rounded-icon"></div>Heading 2</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lectus felis, tristique...</p>
</div>
</div>
<div class="col-3">
<div class="cell">
<h3><div class="rounded-icon"></div>Heading 3</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc lectus felis, tristique...</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
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>.