Solved

css template

Posted on 2011-02-11
2
624 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now