HTML - How Do I Position A Table. Please Help
Hey, im working on a site for my School final project worth 30% of my mark.lol
Anyways i made a simple table with a picture in it plus a heading. Everytime i make a table, it just it just stays right underneath my navigation. it never moves and i dont know how to move the entire table as a whole. Im new to coding so im not sure how to fix this problem. here is an example of my html and css code. -------------------------------------------------------------------------------------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to my Web Portfolio Site</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="Home1.css" /> </head> <div id="header"> <p><img src="Web Photos/banner.jpg" class="feature" width="450" height="90" /></p> </div> <body id="Home"> <div id="navigation"> <ul id="tabnav"> <li class="Home"><a href="Home.html">Home</a></li> <li class="About Me"><a href="#">About me</a></li> <li class="Application"><a href="#">Application</a></li> <li class="Careers"><a href="#">Careers</a></li> <li class="Links"><a href="#">Links</a></li> <li class="Gallery"><a href="#">Gallery</a></li> </ul> </div> <TABLE class="home" border="0" RULES=GROUPS > <THEAD> <TR> <TH>Welcome</TH> </TR> </THEAD> <TBODY> <TR> <TD><img src="Web Photos/banner2.jpg" class="feature" width="760" height="200" /></TD> </TR> </TBODY> -------------------------------------------------------------------------------------------------------- body { color: #000000; } #header p { text-align: right; padding-right: 2px; padding-left: 10px; } ul#tabnav { list-style-type: none; margin: 0; padding-left: 20px; padding-top: 0px; padding-bottom: 30px; border-bottom: 1px solid #7d7d7d; font: 20px Tahoma, arial, sans-serif; } ul#tabnav li { float: left; height: 20px; margin: 2px 2px 0 2px; padding: 4px; } #navigation a { text-decoration: none; } table.home th { text-align: left; color: #7d7d7d; font-family: 7px Tahoma, Verdana, Arial; } table.home th, table.home td { border: 1px solid #7d7d7d; padding-top: 5px; } a:link { color:#7d7d7d; } a:visited { color: #7d7d7d; } a:hover { text-decoration: none; color: #FFFFFF; } a:active { color: white; background-color: none; } -------------------------------------------------------------------------------------------------------- Similar TutorialsHowdy all, I have three scrolling divs that i want to be the height of the page, so i'm guessing position:absolute and height:100% will do that just fine. But i want these three scolling divs to be inside a position:fixed element so that they stay put when scrolling down the page. Is this possible? I dont think a pos:absolute will work nested inside a pos:fixed. How could i work around it? thanks! Hi I' try to work with div tag for the first time and I would lke to know how do I pu div tag in the center of the page. Margin-left it's not the rigt solution. Any other idea? Code: <div id="slideshowContainer"> <div id="imagecontainer"> <script type="text/javascript"> changeslides("initial") </script> </div> <div id="numberDiv"> <script type="text/javascript"> createnumbers() </script> </div> <div id="backforthbuttons"> <div><a href="javascript:goforward()" style="float: right"><img src="../images/buttons/foward.gif" border="0"></a> <a href="javascript:goback()"><img src="../images/buttons/back.gif" border="0"></a> </div> </div> </div> Hey guys I am trying to build a website and I have an image I am trying to write over top of,so I have used a div tag and positioned it and it works. The only problem is when I view the site on another computer that has a different size computer the text is placed completely wrong but on mine it is perfect. Any way to fix this? Code: <div class="style1" style="position:absolute; margin:3px; padding:3px; left:850px; top:154px; width: 50px; height: 25px;"> <a href="page1.htm>1</a></div> I have never been good with this... I cannot get an iframe to be positioned correctly on more than one computer. http://www.e-lusively.com I am using Firefox with 1280x800 and it looks fine for me. Ugh how can I get it to look good in any resolution? Please help... Hi all. I have a page at: http://bartending.com/forum/page.php?page=joke&type=1 My div entitled "Featured" is not lining up. Can any body tell me why? Thank you =) Light and Love and Healing to you, -Patrick Arden McNally Hello All, I have a problem with div position in my html page. I need two divs position=relative aligned with a single div. Basically I have a header panel, content panel (have two vertical column height changed dynamically) and a footer panel. So Content panel vertical column needs to align with header panel. I need all div tags position relative, so when every div increases in height bottom div sifted down automatically. I have this http://www.arunverma.info/webmaster_help/ Can sombody help me to short it out. Thanks in advance Sunil i want the blue bar stay at the top of <div if i used scroll of div code of div PHP Code: <style type="text/css" media="all"> #boxtable { /*the chat div container*/ text-align:left; margin:0 auto; margin-bottom:10px; padding:1px; background-color: #f0f0f0; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; border-right: 1px solid rgba(9, 9, 9, 0.125); height:400px; width:910px; overflow:auto; } </style> PHP Code: <div id="boxtable" > <div id="blueBarHolder" class="slim"> <div class=" fixed_elem" id="blueBar"> </div></div> Work closely with Development team to ensure timely completion of deliverable.<br> WorkcloselywithDevelopmentteamtoensuretimelycompletionofdeliverableorkcloselywithDevelopmentteamtoensuretimelycompletionofdeliverableorkcloselywithDevelopmentteamtoensuretimelycompletionofdeliverable Analyze, design, develop, implement, and maintain moderate to complex computer programs and subsystems<br> </div> i have tried PHP Code: <style type="text/css" media="all"> .slim #blueBar{ height:37px;} #blueBar{background-color:#3b5998;min-width:981px;width:100%;z-index:300} .fixed_elem{position:absolute; } </style> it worked but ****ed up the style.. picture in attackments thx for help In IE7, 6, and 5 and only in IE7, 6, and 5 my flash navigation menu jumps around a little bit from page to page (no more than half of an inch or so per page, minor, but irritating). Probably an easy fix, but how? Do I need to wrap in a div first or should I just apply the rule to the td with an ID? And, should I use absolute positioning, relative, or neither? And I know I know navigation menu not good - I am working on text links for the bottom. One of the pages in question is below, but just navigate around the site and you will see what I am talking about. Much thanks! http://www.buildingblockshomedaycare.com/parents.html I want to position my slideshow in the center of the side. the buttons are positioned with css. http://javascript.lima-city.de/ Who can help ? Hello everyone, I've go this code here for positioning the "comments and frieands" together in in a scroll box at the bottom of the page. But I'd like to put it in a sertante position. Could anyone plaese help me find out were and what to put in this code. And for more information this is a code I want to put within a "div" image and place it in relation to were the image is (0,0) not were the page starts (0,0). -------------------------------------------------------------------------------------------------------- <i class=i> <a href="http://xiii.us/ms/center-friends-and-comments"</a>scroll center friends and comments</a></i> </td></tr></table> </td></tr></table> </td></tr></table> <div class="myDClassFC"> <table><tr><td> <table class="off"><tr><td> <table><tr><td> <style> .i {display:none;} div.myDClassFC {height:400px; overflow:scroll; overflow-x:hidden} </style> <i class="i">!-END Block to put Friends and Comments in a Scroll Box-! </i> ----------------------------------------------------------------------------------------------------- Well I appreciate everyones thought. Hi, I am looking for the easiest and reliable solution to make the "View on Google Maps" image to look like here http://www.dublinbynumbers.com/troubleshooter.html instead of here http://www.dublinbynumbers.com/categories/cinemas The solution should work in both IE/FF and any screen resolution. Thanks in advance for your help, Sorin Hi Comparing this code <div style="border:1px solid black; width:120px;height:25px; padding-top:0px;">hello</div> in Internet Explorer 9 and FireFox 4 shows, that the word 'hello' is not at the same vertical position. Is there a method, to adjust this? Thanks for your information. Patrick Hi, As a newbie html can be a little overwhelming just because of the many different ways a task can be achieved. I'm looking for some advice on the best method to achieve something like this: I have 7 pieces of information about a site user, they are; Avatar 60 x 60px ScreenName DateJoined UserAttribute1 UserAttribute2 UserAttribute3 UserAttribute4 All bar the avatar are text. I would like the outcome to display something like this: Avatar ScreenName DateJoined UserAttribute1 UserAtteribute2 UserAttribute3 UserAttribute4 I'm unsure as to whether to put the avatar and text in 2 divs(left and right), and whether to use spans or lists for the text. Any advice would be appreciated. Thanks in advance. Hi there, I'm trying to create a center column that holds information on my website that is centered to the page, but anchored in place so that if you re-size the window no other instances will overlap. I've taken the time to scrounge around the forum for an answer, but to no avail. I've bounced between using divs and tables for the past few days before finally realizing that I should probably ask for help - I'm a few weeks old to html, so I apologize if my question is somewhat rudimentary. I'm trying to find a way around actually cranking out the numbers and manually placing the images in the center. //EDIT// Here's the code I'm using in the beginning, with css: table { margin-left: auto; margin-right: auto; } And here is my site if you want to see what I mean: www.crazybunny.exofire.net/ Thanks! Hi I have a clickable image on my site that I moved to the right and up using html, but the image always moves when I refresh the page or change browsers. My code looks like this: <a href="LINK" target="blank"> <img src="XXXXX.jpg" WIDTH=165 HEIGHT=477 style="position: absolute; top: 1190px; left: 998px;"/> How do you make it so that my image doesn't move when I refresh the page. I know it probably has something to do with "absolute" position but I'm not sure how to fix it. Any help is appreciated. Thanks i have a problem with position of the page i extended the site to screen, but now i have a problem with left and right box here i have tha code http://www.speedyshare.com/881657120.html i want to look like windows, but now the left and right box not stay in the same width one is higher and other is lower please if someone can help me Hi guys, I'm using a php shopping cart script and having trouble aligning the description text. You can see the page here. http://img18.imageshack.us/img18/6493/cart.jpg Basically, I want the product description to be placed under the product image. Keep in mind, the image you see isn't part of the editable text or html that I can insert to the product page. So when I click to edit the product, all you see is a blank page in which you can enter html or text. I really have no idea of how to do this. I was considering using Code: <br> tags but i'm guessing that would be very sloppy. Any help is appreciated thank you. -Serge I am trying to create an inline frame that loads a website but at a certain pixel position in that website...such that when the webpage loads in the frame it will load for example 100 pixels from the left edge... thanks so much... Hi all =) I have a page at: http://bartending.com/online_courses...newsletter.php The footer won't go to the bottom of the page. Can somebody please tell me what's wrong with this page? Thank you =) Light and Love and Healing to you, -Patrick Arden McNally |