N
news.frontiernet.net
I am trying to do something that is soooo simple and intuitive with a
wordprocessor, yet seems to be complex and elusive with HTM and CSS.
I am trying to right-adjust something to the far right of the top line of a
two line business information listing for which there will be many such two
lines entries on the page.
I enclosed the whole firm in a DIV container and each line is in its own
DIV.
An example of one firms HTML coding would be:
<div class="box">
<div class="name">
A & T Tap
<span class="firm-category">Restaurants/Lounges</span>
</div>
<div class="extra">
1124 Second Ave
Worthington
507/376-6556
<A HREF="/Business/citycent.htm"><img src="images/citycenter.jpg"
border=0 width="54" height="12"></A>
</div>
</div>
The HTML document is at: http://www.wgtn.net/Business/chamlist.htm
The CSS is at http://www.wgtn.net/Business/chamlist.css
So far I have tried;
1) float: right on the span class which seemed to move to the next line in
one or the other browser
2) positioning the firl line relatively then positioning the span absolutely
top 0 and right 0 that didnt work in one or the other browser either
Presently I have just added spacing between the Firm Name and the field I
want flush right.
How can I get that firm-category to go flush right in all modern browsers
without causing another line?
wordprocessor, yet seems to be complex and elusive with HTM and CSS.
I am trying to right-adjust something to the far right of the top line of a
two line business information listing for which there will be many such two
lines entries on the page.
I enclosed the whole firm in a DIV container and each line is in its own
DIV.
An example of one firms HTML coding would be:
<div class="box">
<div class="name">
A & T Tap
<span class="firm-category">Restaurants/Lounges</span>
</div>
<div class="extra">
1124 Second Ave
Worthington
507/376-6556
<A HREF="/Business/citycent.htm"><img src="images/citycenter.jpg"
border=0 width="54" height="12"></A>
</div>
</div>
The HTML document is at: http://www.wgtn.net/Business/chamlist.htm
The CSS is at http://www.wgtn.net/Business/chamlist.css
So far I have tried;
1) float: right on the span class which seemed to move to the next line in
one or the other browser
2) positioning the firl line relatively then positioning the span absolutely
top 0 and right 0 that didnt work in one or the other browser either
Presently I have just added spacing between the Firm Name and the field I
want flush right.
How can I get that firm-category to go flush right in all modern browsers
without causing another line?