whatever_noone
New member
What I want, is to set the width of a <span>. I found that I can do that with display:block; but that causes a whole line break. I want to set the width without a line break.
Basically I'm trying to build a navigation bar for my website. I want each link to have a certain width in pixels. If I use div's, each one bumps the other one below it, rather than going next to it.
Aha. I've noticed that a lot of websites use that approach but I never understood how. Thanks, I think this will work.
If you happen to know anything about this as well... how can I trigger a Javascript event when a user clicks somewhere OTHER than a certain element?
Basically I'm trying to build a navigation bar for my website. I want each link to have a certain width in pixels. If I use div's, each one bumps the other one below it, rather than going next to it.
Aha. I've noticed that a lot of websites use that approach but I never understood how. Thanks, I think this will work.
If you happen to know anything about this as well... how can I trigger a Javascript event when a user clicks somewhere OTHER than a certain element?