This is topic Hey Fugu! - css help needed! in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=029487

Posted by Troubadour (Member # 83) on :
 
Fugu, o master of css, I'm having some issues. This time IE is getting it right (wonder of wonders) while firefox is just not getting it...

I'm trying to apply a specific pixel height attribute to a list that's set to display inline. The list is an a menu generated from a CMS, so it's got a few different classes and IDs, in addition to UL, LI and A tags. I've applied the height attribute everywhere I can think of.

The text area of the <a> tag displays padding and margins properly, but the height attribute only seems to take in IE in the text areas - Firefox just shrinks both the a and the li tags - I'm not entirely certain.... my brain's a bit fried at this point...

If you have any clues, that would be greatly appreciated!
 
Posted by fugu13 (Member # 2859) on :
 
http://www.meyerweb.com/eric/css/inline-format.html

Essentially, inline elements don't have the box model. Which makes sense, how do you describe the height of an element that doesn't have a distinct shape? Instead, you use line-height to give the height for each line. There are some good examples on that page.
 
Posted by Troubadour (Member # 83) on :
 
Danke!

Should've figured that one out myself. Heh.

[Hail]

And while we're on the subject is there any way to disable Moz text zooming using css?
 
Posted by fugu13 (Member # 2859) on :
 
*smacks Troub's hand*

Bad Troubs! Bad!

Seriously, disabling text zooming is both 1) not possible (at least not without considerable hacks) and 2) a bad idea to try. In fact, writing web pages that accomodate text zooming is considered good web design. Simply put, a lot of people don't read as well as we do. They need to be able to enlarge text one way or another in order to see it, and the easiest way to do that is through browser text zooming (for web content, of course).
 
Posted by Troubadour (Member # 83) on :
 
lol - I'm well aware of the... er... 'political' ramifications of not allowing text-zooming.

Normally it's something I accomodate for and in fact most of the design wouldn't be in jeopardy if someone set their font to size 76. However the menu is going to rely on some fairly specific height dimensions and I'm trying to avoid doing it statically.

Apart from the fact that it doesn't work properly, I'm pretty happy with it. [Wink]
 
Posted by fugu13 (Member # 2859) on :
 
There's one semi-hack that's considered somewhat acceptable.

Create the menu as normal, but instead of trying to get the text to fit in a certain space, set the text to not display and put a background image of what you want the text to look like on the parent element of the text wrapping element. Of course, this has the whole display for people with bad eyesight problem thing, so its usually only done for fairly large text, but it works, and keeps the list fully accessible to screen readers.
 
Posted by Wussy Actor (Member # 5937) on :
 
quote:
Danke!

The only word I understood in this whole thread was in german. Seriously, you guys are just making this stuff up to make the rest of us feel dumb, right?
 
Posted by Troubadour (Member # 83) on :
 
Yeah, I actually considered that, but I'd have to hack the core files of the content management system I'm using to make it work.. lol
 
Posted by fugu13 (Member # 2859) on :
 
Which CMS?
 
Posted by Troubadour (Member # 83) on :
 
Mambo
 
Posted by Dagonee (Member # 5818) on :
 
Mambo good.
 
Posted by fugu13 (Member # 2859) on :
 
Heh.

I have heard good things about Mambo, though I tend to Drupal when using a prepackaged one.
 
Posted by Troubadour (Member # 83) on :
 
Yeah, mambo's excellent...

I love the templating system and it just looks so professional on the backend. My clients love how easy it is to work with too.
 
Posted by fugu13 (Member # 2859) on :
 
Mmmm, clients.

I really should get me some of those.

*goes back to work on redesigning website*
 
Posted by Dagonee (Member # 5818) on :
 
If you want clients, remember you're not selling technology.

Your selling a business advantage: greater efficiency, communication, increased capacity, new markets - something that reduces costs, increases revenue, or both.

My most successful pitches were maybe 10% technology at most.

Dagonee
 
Posted by fugu13 (Member # 2859) on :
 
*nods*

A large part of the problem is finding time and contacts who need or will in the future need consulting of the sort I do done (not to mention making sure I find out in time to make a pitch [Wink] ).
 
Posted by Dagonee (Member # 5818) on :
 
If I ever get a lead you'll hear about it. [Smile]
 
Posted by fugu13 (Member # 2859) on :
 
Thanks Dag [Smile] I'd be happy to take business away from the partner you seem to have a bit of a problem with, too [Wink] .
 
Posted by Dagonee (Member # 5818) on :
 
Well, he still owes me money, so I don't want him out of business.

Yet.
 
Posted by Troubadour (Member # 83) on :
 
Good point Dag, something I always am careful about - it's always about "solutionising" their business, as my friend at IBM puts it...
 
Posted by fugu13 (Member # 2859) on :
 
*sighs* would that people would get hired for actually solving problems [Wink] .

Actually, I'm decent at pitching stuff, comes from dealing with college bureaucracy.
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2