Solved

css template

Posted on 2011-02-11
2
629 Views
Last Modified: 2013-11-19
I have built a fixed css template, but i need a css template that can accommodate text and the div and all the other divs will reposition accordingly.

I am attaching my code.

also are there any good templates that can do this out there?

Are there also good fluid templates (from books, blogs, urls)?

Thanks in advance for your help.
<code>
body{
	font-family:helvetica,sans-serif;
}



#outsidewrapper { 
    width: 1000px;
    height:700px;
    margin: 0 auto;
    border:1px solid maroon;
    padding:10px;
}


#header{
	border:1px solid green;
	width:1000px;
	height:100px;
	margin-top: 10px;
        margin-left:auto;
        margin-right:auto;
}

	
#leftnavbar   {
    margin-top:10px;
    width: 175px;
    height: 435px;
    border:1px solid teal;
    float: left;
    
   
}


#maincontent{
   margin-top:10px;
   margin-left:182px;
   width:610px;
   height:420px;
   padding:10px;
   border:1px solid red;
}

#maininnercontent1{
   
   margin-top:10px;
   margin-left:0px;
   width:280px;
   height:400px;
   border:1px solid green;
   padding:5px;
   font-size: 1em;
   }

#maininnercontent2{
   margin-top:-412px;
   margin-left:310px;
   width:280px;
   height:400px;
   border:1px solid purple;
   padding:5px;
}

#rightnavbar  {
    
    width: 175px;
    height: 430px;
    margin-top:-443px;
    margin-left:825px;
    border:1px solid blue;
}

#footer{
    width: 1000px;
    height:100px;
    border:1px solid gold;
    margin-top:30px;
}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Example 1 xhtml</title>

<link rel="stylesheet" type="text/css" href="example1.css"/>
</head>
<body>






<div id="outsidewrapper">

  <div id="header"><h1>Header</h1></div>
  
  <div id="leftnavbar">Left NavBar<br/></div>
  <div id="maincontent">

	<div id="maininnercontent1">Main inner content1<br/>
        Saepe et multum hoc mecum cogitavi, bonine an mali plus attulerit hominibus et civitatibus copia dicendi ac summum eloquentiae studium. Nam cum et nostrae rei publicae detrimenta considero et maximarum civitatum veteres animo calamitates colligo, non minimam video per disertissimos homines invectam partem incommodorum; cum autem res ab nostra memoria propter vetustatem remotas ex litterarum monumentis repetere instituo, multas urbes constitutas, plurima bella restincta, firmissimas societates, sanctissimas amicitias intellego cum animi ratione tum facilius eloquentia comparatas. 
 

	</div>
        <div id="maininnercontent2">Main inner content2</div>
   </div>

  <div id="rightnavbar">Right NavBar</div>
  
  <div id="footer">footer</div>

</div>

</body>
</html>

Open in new window

0
Comment
Question by:seeker7806
2 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 34876750
but what are you trying to achieve in this template?
what structure/template are you looking for?
0
 
LVL 11

Accepted Solution

by:
Amanda Watson earned 500 total points
ID: 34877893
Have a look at the css library in Dynamic Drive, they could have something you are looking for
http://www.dynamicdrive.com/style/
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question