PDA

View Full Version : centering navbar UNDER CUSTOM BANNER


vdotmatrix
Mar-26-2010, 09:48 PM
I TRIED using the following on the navcontainer in the CSS section:

margin: 0 auto;

to center the navbar under the banner but it doesn't move.

Is there a better way?

J Allen
Mar-26-2010, 10:01 PM
I TRIED using the following on the navcontainer in the CSS section:

margin: 0 auto;

to center the navbar under the banner but it doesn't move.

Is there a better way?

In your CSS box change all the comments from this:





<!---no feeds--->






To this:



/*no feeds*/






Be sure to change them all...then take a look at your site...you'll probably see a lot of things fixed. :D

vdotmatrix
Mar-27-2010, 03:20 AM
Hours of Agony brought to a swift end-thank you.

Question: I am learning CSS slowly by example, i was trying to give the nav div box a property, but you were able to center the div because of the <!--comments--->.

Can you explain how the comments affected the div box please..thank again!:clap

In your CSS box change all the comments from this:





<!---no feeds--->





To this:



/*no feeds*/





Be sure to change them all...then take a look at your site...you'll probably see a lot of things fixed. :D

J Allen
Mar-27-2010, 03:51 AM
Hours of Agony brought to a swift end-thank you.

Question: I am learning CSS slowly by example, i was trying to give the nav div box a property, but you were able to center the div because of the <!--comments--->.

Can you explain how the comments affected the div box please..thank again!:clap

This comment tag is for html only:






<!--comments--->







This comment tag is for CSS only:







/*comments*/






So when the browser was trying to read your CSS, it couldn't because of the errors caused by the wrong tag...understand?


A quick lesson HERE (http://css.maxdesign.com.au/selectutorial/rules_comments.htm)