...

View Full Version : Problem with the Main Menu



Andi_G
04-04-2011, 05:18 PM
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!

oesxyl
04-04-2011, 05:24 PM
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

Andi_G
04-04-2011, 05:54 PM
Here is the link :

http://certificatsiauditenergetic.ro/test/

Thank you

oesxyl
04-04-2011, 06:29 PM
Here is the link :

http://certificatsiauditenergetic.ro/test/

Thank you
you are welcome, :)

you have some markup problems:

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fcertificatsiauditenergetic.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):


td, tr {
margin:0;
padding:0;
text-align:center;
}


best regards

Andi_G
04-04-2011, 06:53 PM
Thanks a lot.

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

oesxyl
04-04-2011, 07:04 PM
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, :)

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum