NameSilo

Need help to edit css code

Spaceship Spaceship
Watch

Stephen3

Established Member
Impact
0
Hello, I'm new in css, I've tried make a menu bar but seem like have some problem on it. Please take a look on http://www.m2u.info/test/

The image "navrg.gif" have drop to next line, how to make it on same line?

About the width, how can I make it depend on the text length?

I would like to do a menu bar similiar espn.com menu bar, I wonder where can let me learn about the dropdown and how they did the | bar?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Hey mate! Saw your post and wanted to help!

About the Dropdown menu here's your answer:
http://www.dynamicdrive.com/dynamicindex1/dropdowncontrol.htm

About the menu just change the content in the body tags to this and it will look the way you wanted it to be:
<body style="body">
<div id="menu">
<div id="mleft"></div>
<div id="mright"></div>
Home | About | Contact
</div>
</body>

If you're new to using div's it's maybe better if you do the menu in a table instead and then fix the lenght and all. Or try to combine the css with the table for it to be placed exactly were you want it to be.

Good luck! :)
 
Last edited:
0
•••
Try adding

Code:
display: inline;

To all of those divs.
 
0
•••
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back