HTML - 3 Columns And A Header
Thanks to Coothead over here I got what I wanted. Unfortunately the web is so .. how do you say it... polluted... that sometimes it is really hard to find what you want, not to say impossible.
So I got: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>driekleur pagina</title> <style type="text/css"> html,body { margin:0; padding:0; height:100%; } #linkerkolom { width:15%; height:100%; float:left; background-color:#776644; } #middelste_kolom { width:70%; height:100%; float:left; background-color:#fff; } #rechterkolom { width:15%; height:100%; float:left; background-color:#776644; } </style> </head> <body> <div id="linkerkolom"></div> <div id="middelste_kolom"></div> <div id="rechterkolom"></div> </body> </html> But how do you create a header? Lets say about 3 inches in height. And in the color black. I tried to do it but I failed. Anyone? Similar TutorialsSo we got 3 columns with a header. I tried to put a footer underneath it all, but until now... no result. Anyone who can help me out? HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>driekleur pagina</title> <style type="text/css"> html,body { margin:0; padding:0; height:100%; } #header{ position:absolute; top:0; left:0; width:100%; height:15%; background-color:#222222; } #linkerkolom { width:15%; height:100%; float:left; background-color:#776644; } #middelste_kolom { width:70%; height:100%; float:left; background-color:#fff; } #rechterkolom { width:15%; height:100%; float:left; background-color:#776644; } #footer { background-color:#f9ffff; position:absolute; border:solid 1px #CCCCCC; border-bottom:0px; border-left:0px; border-right:0px; bottom:0; left:0; width:100%; height:22px; } </style> </head> <body> <div id="header"></div> <div id="linkerkolom"></div> <div id="middelste_kolom"></div> <div id="rechterkolom"></div> <div id="footer"></div> </body> </html> Hello, I would like to make my two column web page into 3 columns and dont know how to do this. It is a template and I cannot figure out where to put the <td>. My site is online and then I hope to delete this link if it is possible. Please no negative remarks as I am notlooking for visitors I just want help. please. ] Here is the code I want to put into the code but not sure where to put it to get the 3rd column. I hope someone will be kind enough to help . thanks. <td width="200"> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="200"> <p> <a href="index.html">Home</a> </p> </td> </tr> </table> Hey, im trying to find out why the header on my website isnt at the top of the page. it also moves sometimes even though the code appears to be all the same. the address is www.themonsterbox.com thanks in advance for any help. I've been playing about with columns, and it really bugs me when I cant get to do it correctly, I need to know how to make a three column page like this one- http://watchseries.eu/ I know there is a lot of float involved, and no matter how much I try, I cannot get the hang of it. I've also read the column tutorial on this forum with no help. How hard can it be? I already posted a similair item like this on a dutch forum (for those who do not know: I am dutch) but that ended in no result. Imagine yourself the painting from I think it was Barnett "Who is afraid of red, yellow and blue. Or better... take the French flag ( http://www.e-s-e-a.com/FRENCH%20FLAG.png ) Now could you or anyone else write me the script that would give me three columns? The left column 15% The right column 15% The middle column 70% I read that giving the columns a width in percentages was better because of screensizes. No header. No footer. Just 3 columns. It has to be like the French flag all over your screen. Well you don't have to give the columns exactly the same colors but it would be nice. Hi, Basically I was wondering how I can give a page "columns" I want to set it up with the normal heading I'm using, then do something like this: (column 1) ______ | ______ (column 2) _______________ | ________ ... Sign Up ________ | _______ Member Name: _ [box] ___________________________ Password: _ [box] I am adding an event to a web page I have inherited from someone else. I don't have access to the CSS styles in the webpage, so I have to use existing styles. The page is supposed to line up in two columns, and used to do that before my updates today, but for some reason now is all in one long column. I could use another set of eyes, as I can't seem to see the reason it is having problems. Can you help me? I need to get an answer this morning or I will have to change the page back so that it looks correctly even if it has old information. Hello, I would like to add a table or <diiv> behind the columns on this blogger template and add a border to it. I'm not so sure of how to do this. I'm new to blogger XML templates. Please excuse me, I'm a little rusty. It's a free template called WhiteMagic and it has CSS in it as well. In this kind of template what kind of table or div should I add and what code? I'm not quite sure on what code to put for a table or <div>. Do you know? or maybe a website that can point me to it? Example: http://solitude-of-heart.blogspot.com/ I'm not going to use that template^ because it doesn't meet the rest of my needs. However I'd like to add a table or div that has a border. Here is an updated code. http://pastebin.com/W1Ff7BpQ My website: www.MarinaElizabeth.com customized WhiteMagic Thank you in advance Hi all, I'm new to the forum and was hoping I could get some quick help, since I am not a web publishing expert. I've got a basic table set up with multiple rows but different column widths (i.e. 2 columns in one row, 3 columns in another row, both rows with different column widths). Basically I want each row to span the entire table width. However, it comes out fairly mutated instead :: 1st row becomes 2 filled and 1 empty column, 2nd row becomes 3 columns that are unequally spaced. In one row, <table width="100%" border="2" bordercolor=BLACK cellspacing="0" cellpadding="10"> <tr valign="top"><td width="50%" align="center"> SOME BODY TEXT HERE</p></td> <td width="50%" align="center" bgcolor="#FFFFFF"> SOME BODY TEXT HERE</p></td> </tr> Closely following that row, another row with:: <tr valign="top"> <td width="33.3%">SOME BODY TEXT HERE</td> <td width="33.3%">SOME BODY TEXT HERE</td> <td width="33.3%">SOME BODY TEXT HERE</td> </tr> </table> What's wrong here? PS This is for an HTML e-mail marketing campaign, so I do not believe CSS is an option I feel rather stupid asking this question, because I'm certain it's so simple to fix... Please see this HTML eBay template http://www.bluelagoonproducts.com/template-noncss.html As you can see there are 2 main colums: A - The menu (Store catagories) on the left B - Content (Description) on the right. I need the menu on the left to stay at the top, rather than in the middle. When column B has more content or paragraphs than column A, Column B stays in the middle relative to the page. Hope someone can help? Seriously, why does it hate me? The math is all correct and it lays out perfectly fine in firefox as expected. Can anyone give me a tip as to what's wrong here before I trash this whole idea and go with a reliable table. 2 columns. 15px left and right margins on the "left" column, 470px wide 15px right margin on the "right"column, 455px wide Code: <!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=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> body { margin: 0; padding: 0; width: 970px; background: #e1e1e1; } #wrap { padding: 10px 0; background: #fff; } #left { margin: 0 15px; width: 470px; height: 100px; float: left; background: #f00; } #right { margin: 0 15px 0 0; width: 455px; height: 100px; float: right; background: #666; } </style> </head> <body> <div id="wrap"> <div id="right"></div> <div id="left"></div> <div style="clear: both;"></div> </div> </body> </html> I was wondering how I can make 3 equal size div columns inside of a iframe? Because my site www.PrimeNewsCenter.com and I have 3 iframes right now inside the main iframe on the front page and although it looks good in IE it looks really bad in all other browsers and divs dont look like that. Thanks! This is my code. I am getting the results as rows/horizontally. I want the entire results to be displayed in 2 columns. can anyone help me out.? mport_request_variables('p','p_'); $connect=mysql_connect('localhost','********','********') or die('could not open:'. mysql_error()); mysql_select_db('gkkilaru_db'); $result=mysql_query("SELECT * FROM human WHERE $p_Searchtype='$p_Search'"); if (mysql_num_rows($result)>0) { echo "<table cellpadding='1' cellspacing='1' bordercolor=pink width='800' border='1'>"; echo "<tr align='center'>"; echo "<td>KEGG_ID</td>"; echo "<td>Gene_Name</td>"; echo "<td>Uniprot_ID</td>"; echo "</tr>"; while($row = mysql_fetch_object($result)) { echo "<tr align='center'><td>"; echo $row->KEGG_ID; echo "</td><td>"; echo $row->Gene_Name; echo "</td><td>"; echo $row->Uniprot_ID; echo "</td><td>"; } } else { echo "<tr align='center'><td>"; echo "<br/><br/><font size='4' color='red'>"; echo "No Records Found!</p>"; echo "</td></tr>"; } //mysql_close($connection); } break; } I tried to solve this...but I was unable to do it. Please help me I need to create a <select multiple> type form control, but with two columns. Is this possible? So I need users to be able to select multiple options from a control that displays items in two columns, and should be scrollable. Is there anyway to do this using the default HTML <select multiple> control. if not, is there a more complex method? Hi everyone. I just joined up in hopes that someone here can help me figure something out that's been driving me nuts for days. I am trying to create some content boxes for the sidebar of my blog. I've managed to create the actual boxes, but then I want to make a new one with two columns to put link badges in. Below is the code I have so far.... <style type="text/css"> <!-- .container_sidebar_about { width:225px; height:64px; background-image:url(http://dougcloud.net/show/headlinklove.png); } .container_sidebar { width:203px; background:#FEF6D2; font-family:Arial, Helvetica, sans-serif; border-width: 0px 1px 1px 1px; border-spacing: 0px; border-style: none solid solid solid; border-color: #4F3314; padding:10px; margin:0 0 20px 0; font-family: 'Trebuchet MS', sans-serif;color: #4F3314; font-size:11px; } a:link {font-family: 'Trebuchet MS', sans-serif;color: #4F3314;} a:visited {font-family: 'Trebuchet MS', sans-serif;color: #ba742a;} --> </style> <div class="container_sidebar_about"></div> <div class="container_sidebar"> <div style="width:100px;float:left;text-align:center;">I have always had the uncanny knack of visualizing how something should look and in 1998, after purchasing my first computer, I started making small graphic things for friends - web buttons, guest book designs, etc.</div> <div style="width:100px;float:right;text-align:center;">I have always had the uncanny knack of visualizing how something should look and in 1998, after purchasing my first computer, I started making small graphic things for friends - web buttons, guest book designs, etc.</div> </div> With this code the text displays in two columns, but it does not appear to be inside the main div with the background color and 1 pixel border. I would like to know what I'm doing wrong so I can make this work properly. I appreciate any help. I've recently been working on my first site, which is a complete revamp of an old one. It's a 3 column design, with the central area displaying thumbnails. Here it is.. www.sevensofmacclesfield.co.uk I'm getting all sorts of problems when zooming / text enlarging on various browsers ( Ctrl +/-) - particularly the bottom right hand side, where the sidebar joins the footer It's gone live, and I've run out of ideas to sort it out - can anyone offer any advice? Any help will be invaluable! Thermos How can you make a border appear between rows in a table but not between the columns? Hence you won't notice that there's actally any columns in the table since it's not squared, only the rows are marked, but the columns still are there to prevent the cells from ending up at different horizontal positions at the different rows. Hello all, I am using Dreamweaver to create my site, and I'm using the two column fixed left sidebar header and footer template. Anyway, I need to have two separate columns of text in the main content portion, and I'm not sure how to go about it. Is using a table somehow the easiest way to go about it? Help in either code format or in the design format would be helpful. ~~Idaho Parkour I'm blocked at a weird scenario. I have the following HTML table: Code: <table border="1" width="600" class="sample"> <tr> <th style="display:none;">Revision Number</th><th>Date</th><th>User</th><th>Comments</th> </tr> <tr> <xsl:call-template name="splitEveryNTermsForTable"> <xsl:with-param name="inputString" select="$dataattribute"/> </xsl:call-template> </tr> </table> The XSL template splits the "dataattribute", which is a ~ delimited string into 4 values per row. Can i control the display of either of the 4 columns using HTML using this case? I want to hide one of the columns. Thanks in advance! |