In Freeway, you can’t make a span without adding a classname to it. So make a dummy style with nothing in the Tag field, and some word (maybe span) in the Name field. Don’t add any style attributes to it, but be sure that Permanent is checked.
So now you have a style that doesn’t do anything. To re-write your CSS so it will only attach itself to this style, you can simply change it to:
span.span {
float: left;
display: block;
}
Or, if that doesn’t do the trick, you could do this:
#menu li a span.span {
float: left;
display: block;
}
But I suspect that first one will do fine.
Now select the text you want to apply this span.span style to and click on .span in the Styles palette list of styles. As long as what you have applied the style to is less than a full paragraph of text, the code that will be written will be something like this:
<li><a href="#" title="Link 1"><span class="span">Link 1</span></a></li>
By the way, there are MUCH simpler ways to make a horizontal list than this.
Try this:
#menu ul {
float: left;
width: 100%;
padding: 0;
margin: 0;
}
#menu li {
float: left;
list-style-type: none;
padding: 0;
margin: 0;
}
#menu li a {
display: inline-block;
padding: 4px 8px;
background-color: #cfc;
border: 1px solid #333;
}
Yes, it’s way more CSS, but absolutely nothing that doesn’t belong in your HTML. Your menu is nothing but a list of links, which is a very semantic structure. If Freeway allowed you to add IDs or classes to lists, then you would be using the absolute bare-minimum amount of HTML, because you could skip that wrapper DIV.
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options