![]() |
| ||
| css to make navigation bar I am trying to make a navigation bar using a list. Since a list is indented by default, I can't seem to get my list all the way to the left. I have looked at examples of this, but am not sure how they are doing it. Below is what I have <html> |
| ||
| Re: css to make navigation bar Quote:
<!-- set ul margin to 0 --> |
| ||
| Re: css to make navigation bar I tried that, but does not seem to have any effect. I still am about 6 characters from the left margin. |
| ||
| Re: css to make navigation bar When dealing with "spacing" issues in CSS, always check to ensure that both the margin and the padding properties are properly set for all elements, including all parent/container objects and so on all the way up the tree. In fact, it's best to set margin and padding both to "0" to establish a baseline or "natural" position for everything, and then adjust as needed. |
| ||
| Re: css to make navigation bar You can always set margin-left for the UL to a negative value... around -40 does it for FireFox. Use JavaScript to vary the margin-left when a user runs IE/FF and that actually makes a solution. |
| ||
| Re: css to make navigation bar Thanks for the help. I did not even think to check the padding property. |
| ||
| Re: css to make navigation bar be careful with margin and padding property and try with different browsers. |
| ||
| Re: css to make navigation bar Take a look at my dropdown tutorial in the tutorials ssection of this site. It uses list items and contains comments which will tell you what each CSS entry does. |
| All times are GMT -4. The time now is 9:12 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC