Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    2
    Member #
    29420
    Im working on my first web page and I need a little help!

    Im good with css, but not with html. Im not saying html is hard, I just dont have enough practice.

    So here it is:

    Because Im not good at html, Im using table for header,footer and body. Example:

    Code:
    <table id="top-header" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    the I call this in css. Example:

    Code:
    #top-header{
    background-image:url(topheader.png);
    height: 76px;
    background-repeat: repeat-x;
    background-position: center;
    background-position: top;
    }
    So I create another table with id="logo" and in css #logo{} and I get my logo, but problem is that logo is not on header. It is above or under. Depends where I write "logo" code in HTML. (under or above "header" code). If you know what I mean!

    Thanks!

  2.  

  3. #2
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Devon, UK
    Posts
    1,473
    Member #
    28473
    Liked
    265 times
    codes quite easy to do. Thus:

    HTML Code:
    <div id="top-header">
    <div id="logo"></div>
    </div>
    and CSS
    Code:
    #top-header{
    width:1000px;
    height:80px;
    margin:auto;
    background-color:blue;
    padding:10px 0 10px 0;
    }
    #logo{
    width:250px;
    height:80px;
    float:left;
    background-color:yellow;
    }
    Enjoy.

    P.S: I suggest learning about Div's and Class's as a priority. Websites built in tables is not the correct way of doing things. Especially if you want to become a webdesigner/developer.
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>

  4. #3
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    I actually used to teach using tables to beginners, it was much easier for them to comprehend, just to get a feel for the coding and understanding the structure of HTML.

    It's not a bad thing, but tables are a very in efficient way of designing.

    The biggest drawback to using tables is that a browser has to read everything in the table into memory each and every time, before it can start displaying anything to the user.

    Once you learn the proper structure of HTML, CSS design is the next logical step.

    When using CSS, the browser will read the stylesheet into memory 1 time and start displaying elements as they are read into memory. When a user goes to another page, the CSS file is already in memory, so the display times are very quick.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:37 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com