Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Problem with the Main Menu

    I have recently started to study html and css and I am using the table method for now.

    I try to exercise and practice on a design and I encountered a problem with positioning my main menu and setting the right number of pixels/the right property-tags in css.

    Here is a printscreen of how my website looks so far, so you can see the problems.
    http://img560.imageshack.us/i/81721027.jpg/

    Thanks a lot!

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Andi_G View Post
    I have recently started to study html and css and I am using the table method for now.

    I try to exercise and practice on a design and I encountered a problem with positioning my main menu and setting the right number of pixels/the right property-tags in css.

    Here is a printscreen of how my website looks so far, so you can see the problems.
    http://img560.imageshack.us/i/81721027.jpg/

    Thanks a lot!
    can you post a link to the site or to a test page?

    best regards

  • #3
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Here is the link :

    http://certificatsiauditenergetic.ro/test/

    Thank you

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Andi_G View Post
    Here is the link :

    http://certificatsiauditenergetic.ro/test/

    Thank you
    you are welcome,

    you have some markup problems:

    http://validator.w3.org/check?verbos...c.ro%2Ftest%2F

    is not a good idea to use a table in your case, you don't have tabular data.

    try to add ( line 22 in main.css):
    Code:
    td, tr {
    margin:0;
    padding:0;
    text-align:center;
    }
    best regards

  • Users who have thanked oesxyl for this post:

    Andi_G (04-04-2011)

  • #5
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks a lot.

    Should I use the tableless method? I am still learning it.

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Andi_G View Post
    Thanks a lot.

    Should I use the tableless method? I am still learning it.
    yes, if you don't have tabular data. Using divs is more easy to learn then using tables,
    You also need to forget to think in terms of pixels, a web page is not a picture, with a given size,

    Edit: one example:
    you have in your page a search, you force it to stay on the right side using a margin-left value. You can acive same effect by using float: right and in this case doesn't matter the width of the page.

    best regards
    Last edited by oesxyl; 04-04-2011 at 06:09 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •