|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Thread Type: Sticky Thread Total posts in this thread: 39
|
|
| Author |
|
|
Advanced Member Joined: Jun 14, 2003 Post Count: 2940 Status: Offline |
All of us experienced web designers/developers know that the vast majority of websites actually have just a few basic layouts. Take a look at this diagram and then the next post: ---------------------------------------- ---------------------------------------- Stefan Mischook Video Tutorial Store | Web Templates ---------------------------------------- [Edit 2 times, last edit by admin at Mar 7, 2006 11:46:25 PM] |
||
|
|
Advanced Member Joined: Jun 14, 2003 Post Count: 2940 Status: Offline |
There are plenty of places on the web that provide these layouts in CSS for web designers to use. The problem is that they are all made using CSS hacks. I would like to get our killer-crue together to put together each of these layouts without using hacks - use IE conditional comments instead when we need to. Anyone interested? ---------------------------------------- Stefan Mischook Video Tutorial Store | Web Templates |
||
|
|
Advanced Member UK Joined: Dec 29, 2004 Post Count: 1662 Status: Offline |
What a great idea! Perhaps we should have a thread dedicated to each type of layout. I would imagine that we all have our own ways of achieving each layout, and putting together our ideas for the ultimate layout could create lengthy discussions. Start with something simple - 2 column fixed say? Lets see what we can come up with... Tim ---------------------------------------- Pavonis Mons | Listen of the week: "Residue of Desire" by Acumen |
||
|
|
Advanced Member USA Joined: Nov 27, 2003 Post Count: 6285 Status: Offline |
No reason why we can not allow different versions of the layouts as everyone has their own style. If I were bored I would have a go for it... but have three possible projects I have to nail down. So have to pass on this one. |
||
|
|
Advanced Member Joined: Oct 27, 2004 Post Count: 2550 Status: Offline |
hi, i hope to reboot one of my webs in 2 days (min) and coincidently it is a 2 column fix css layout without hacks. I only not sure how we will post it? link or code? ---------------------------------------- My blog |
||
|
|
Advanced Member Joined: Apr 2, 2005 Post Count: 2141 Status: Offline |
May I suggest that the templates being submitted is to be stripped down to just the codes needed to create the layout only (i.e. remove all <p>, <img>, etc. from HTML and the styles associated with it from the CSS)? ---------------------------------------- Success is based on how much you spend. If it's not money, then the alternative is your time. The Kasper Group |
||
|
|
Advanced Member USA Joined: Mar 24, 2005 Post Count: 3000 Status: Offline |
First Template Submission - Fixed Centered 2 Column Layout CSS hacks? IE conditional statements? You don't need them for this layout. Ok, some IE Cond Statements will be needed to adjust padding and margin errors in IE when adding background images in the top, left and footer divs (to be pixel perfect). Let me know if you see any bugs, etc., b/c this is what I use for a lot of my sites now. This is like the fifth edition and seems to hold up really well. It will accomodate a browser of 765px or wider. Enjoy! ![]() CODE: All css is included. Add your own personality to dress this up. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Template</title> <meta name="Keywords" content="key, words"> <meta name="Description" content="Description"> <meta name="Author" content="MaineWebworks http://mainewebworks.com"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <style type="text/css"> /* Global Style */ body{ margin:0; padding:0; font:100% Arial,sans-serif; background:#f2f2f2; color:#333; } p { margin:0; padding:5px; font-size:95%; line-height:1.3em; text-align:left; } blockquote p { margin:0; padding:0; font-size:85%; font-style:italic; color:#808080; } ul { margin-top:0; color:#000; } li { line-height:1.4em; } /* Structure and minor style */ #wrap{ position:relative; margin:0 auto; padding:0; width:765px; border:0; background:#fff; color:#333; } #top { margin:0; padding:0; width:100%; height:120px; background:#fff; border:1px dotted #808080; color:#000; } #logo { margin:0; padding:0; background:transparent url(your_logo.jpg) no-repeat top left; width:270px; height:100px; color:inherit; } #top h1 { margin:-50px 0 0 290px; padding:0; font-size:120%; } #main { margin:0; padding:0 15px; width:500px; float:right; border:1px solid #333; background:#fff; color:#333; } #main h1{ margin:5px 0 0 0; padding:0; text-align:center; font-size:105%; } #main h2{ margin:10px 0 0 5px; padding:0; font-size:95%; } #left { margin:0; padding:0 15px; width:200px; float:left; background-color:#DADADA; color:inherit; } #left ul { margin-left:10px; padding:0; } #left li { list-style-type:none; } #bot { margin:0; padding:20px 0 0 0; clear:both; height:50px; font-size: 70%; background:#808080; } #bot p{ text-align:center; } .divider { padding:10px; text-align:center; } </style> <!--[if lte IE 6]> use for an alternate style sheet geared for IE fixes <![endif]--> </head> <body> <div id="wrap"> <!-- sof Head --> <div id="top"> <div id="logo"> [add your logo here]</div> <h1>Company Name or Tag Line</h1> </div> <!-- eof Head --> <!-- sof Main **right side** --> <div id="main"> <h1>HEADER 1 TEXT - TOPIC 1 INTRO</h1> <p>The beautiful thing about this 2 column layout is the left navigation. It is the last container block before the footer, yet it floats to the top left of the page. THe css is plain jane. Normally, it would contain background images, and pretty mark-up for the text. Also, it should be linked from an external file. For example: link < rel="stylesheet" type="text/css" href="style.css" ></p> <h2>Header 2 Text - Sub Topic</h2> <p>This is an important technique because it creates a more search engine friendly page. SE's will index the test content in the main div before crawling the left side links.</p> <p><strong>The Benefits</strong> —</p> <ul> <li>No css hacks</li> <li>no IE conditional statements</li> <li>validates 4.01 strict</li> </ul> <p><strong><em>Look Ma! No tag soup!</em></strong></p> <!-- a bit of deco --> <div class="divider">? ? ?</div> <h1>HEADER 1 TEXT - TOPIC 2 INTRO</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis sagittis, leo a adipiscing tincidunt, massa erat ultrices lorem, non nonummy lorem risus ac orci.</p> <blockquote><p>Here is a blockquote. Here is a blockquote. Filler text for the purpose of filing a blockquote container.</p></blockquote> <p>Filler text Filler text Filler text</p> </div> <!-- eof Main --> <!-- sof Left Side--> <div id="left"> <p><b>plain ul vanilla menu</b></p> <ul> <li><a href="#nogo" title="">Link</a></li> <li><a href="#nogo" title="">Link</a> <ul> <li>–> <a href="#nogo" title="">nested links</a></li> <li>–> <a href="#nogo" title="">nested links</a></li> </ul> </li> <li><a href="#nogo" title="">Link</a></li> <li><a href="#nogo" title="">Link</a></li> </ul> </div> <!-- eof Left Side--> <!-- sof Footer --> <div id="bot"> <p>Copyright © 2006 Your Name. All rights reserved.</p> <p><a href="http://mainewebworks.com" title="maine web development">Design & Development by MaineWebworks</a></p> </div> <!-- eof Footer --> </div> <!-- eof wrap--> </body> </html> *some of the html characters did not post well here. You can go to http://maine-webworks.com/forum-posts/2_column_css/index.html to get the source code. Compatible for IE6+, NS6+, and Firefox. (it degrades ok in IE 5.0, 5.2, 5.5, NS 4.78 and others) To see this in various browsers/OS, go to http://www.browsercam.com/public.aspx?proj_id=234474 -John ---------------------------------------- "The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo Save the developers<!> Maine Webworks ---------------------------------------- [Edit 2 times, last edit by shelfimage at Mar 8, 2006 2:13:56 PM] |
||
|
|
Advanced Member Ohio, USA Joined: May 30, 2004 Post Count: 2677 Status: Offline |
What a very cool idea! This will be VERY useful. ![]() |
||
|
|
Newbie Canada Joined: Apr 19, 2006 Post Count: 37 Status: Offline |
Is this thread still going (ie: should I be replying to a 3-week old post)? Anywa, your layout looks good. One thing I've always encountered though is regarding height. Here it's set to 120px: #top { margin:0; padding:0; width:100%; height:120px; background:#fff; border:1px dotted #808080; color:#000; } This works IE, but if there is no content within the #top div (ie: if it has a background image from another div, etc), the div will collapse in Firefox. So everytime I do a layout I also include the 'min-height' as well as a precaution: #top { height: 120px; min-height: 120px; } Do you find the same thing? Cheers -D |
||
|
|
Advanced Member Joined: Jun 14, 2003 Post Count: 2940 Status: Offline |
You may want to take a look at this: http://www.killersites.com/blog/2006/matching-div-heigths/ ---------------------------------------- Stefan Mischook Video Tutorial Store | Web Templates |
||
|
|
|
|
|
Current timezone is GMT May 23, 2013 6:12:31 AM |