2 replies [Last post]
jag5311
Offline
Regular
Last seen: 15 years 47 weeks ago
Joined: 2003-08-28
Posts: 12
Points: 0

It is not possible to add a "id" to a span tag, correct?

Take my online example, http://www.btkdesigns.com/newbtk/practice.htm

Next to the menu, on the same line, I want to include 3 different styles for people to choose from. I want them aligned right so they won't be bumped up next to the menu. What is the best way to do this

I tried this

<div id="menu"><a href="blah" ........blah ...blah <span id="style">Pick your style: <a href="#" title="Blue">Blue</a><a href="#" title="Dark Gold">Dark Gold</a><a href="#" title="Red">Red</a></span></div>

When I applied text-align: center; to the STYLE id, it didn't work. What are my other options, without that whole menu line breaking down onto another line.

Thanks

DJSdotcom
Offline
Enthusiast
Rochester, NY / Chicago, IL
Last seen: 16 years 18 weeks ago
Rochester, NY / Chicago, IL
Joined: 2003-03-23
Posts: 95
Points: 0

Using Span

I'm not really sure the effect you're going after, but you can add an id attribute to a span tag, and have the CSS pick it up correctly.

I didn't look at your CSS so I'm not quite sure what's wrong with your selector yet...

Mike

</twocents>

jag5311
Offline
Regular
Last seen: 15 years 47 weeks ago
Joined: 2003-08-28
Posts: 12
Points: 0

Using Span

I figured it out. Thanks anyways