![]() |
| ||
| How do I center extend the nav bar to fit in the body of the page I'm trying to get my horizontal bar to fit right in middle of my page. It supposed to be 774px wide. I'm also trying to add round (curve) edges to both ends. Here's my css code that I got from a template. Right now, the nav bar is to the left, short and doesn't fit the whole page. Here's the css
Here's the html file <body> |
| ||
| Re: How do I center extend the nav bar to fit in the body of the page Okay - you have told us what the width should be... any reason you haven't told your css ? :) Tell you Nav Container the width you want! Additionally, you may want to wrappers/contaiers for the nav... once with the full width, one that "shrinks" around the content... then center the shrunk one. As it's parent has a defined width, it should beable to calcualte a position from there! please think twice before applying a set height for the nav - as text-resizing will cause the text to break out! Further, what happens if the text gets bigger in such a short widht.... it could result in the links dropping to two lines not one... in which case it will break your design due to fixed height! Basically... set widths, not heights!!! |
| ||
| Re: How do I center extend the nav bar to fit in the body of the page Thanks a lot man its working fine. --------------------c [snipped fake signature] |
| ||
| Re: How do I center extend the nav bar to fit in the body of the page Groovey :) |
| All times are GMT -4. The time now is 9:02 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC