Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-04-2011, 04:18 PM   PM User | #1
Andi_G
New to the CF scene

 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Andi_G is an unknown quantity at this point
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!
Andi_G is offline   Reply With Quote
Old 04-04-2011, 04:24 PM   PM User | #2
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
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
oesxyl is offline   Reply With Quote
Old 04-04-2011, 04:54 PM   PM User | #3
Andi_G
New to the CF scene

 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Andi_G is an unknown quantity at this point
Here is the link :

http://certificatsiauditenergetic.ro/test/

Thank you
Andi_G is offline   Reply With Quote
Old 04-04-2011, 05:29 PM   PM User | #4
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
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
oesxyl is offline   Reply With Quote
Users who have thanked oesxyl for this post:
Andi_G (04-04-2011)
Old 04-04-2011, 05:53 PM   PM User | #5
Andi_G
New to the CF scene

 
Join Date: Apr 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Andi_G is an unknown quantity at this point
Thanks a lot.

Should I use the tableless method? I am still learning it.
Andi_G is offline   Reply With Quote
Old 04-04-2011, 06:04 PM   PM User | #6
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
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..
oesxyl is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:40 PM.


Advertisement
Log in to turn off these ads.