wjw
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by wjw
-
-
I'm looking for a way to add custom attributes to some of my elements (inputs and textareas). Is this possible with strict XHTML or do I have to create a new DTD? I'm not opposed to doing that, but am concerned with browser support.Any suggestions on how to do this and a discussion of the pros/cons of the various methods is greatly appreciated.Thanks
-
A better example of how this would be helpful is:.smallText { font-size: 65%;}.dataFieldLabel { .smallText; font-weight: normal; . . .}.dataFieldData { .smallText; font-weight: bold; . . .}That way if I wanted to change the small text size, I'd just modify the .smallText class.It's no big deal as CSS provides other ways of stacking classes but it seems like this way would make sense.JasonI don't think so, but I'm not an expert.I would create each class as you need and assign them accordingly. -
Is there a way to include one style within another for example:.noborder { border: none;}.datafield { /* include noborder style here */ font-weight: bold; . . .}I know I can add several classes in the XHTML (i.e. class="datafield noborder") but have a lot of places where this would greatly help. (okay, I'm just too lazy to type all those class names:)Thanks!
-
Is there a CSS attribute/value to invert the background and text color? I tried using the outline-color: invert but it didn't seem to do what I was looking for. I can explicitly set the color and background-color, but I'd rather just have it invert whatever the parent's colors are. I'd rather not invert the border color, but can work around that by not having borders on the inverted div.Any help is appreciated.Thanks!
-
Well I was hoping for a simple combination of CSS attributes that would do the trick but it doesn't look like that's going to happen. I see the potential with scott100's suggestion and will give that a shot early next week. If I get it to work I'll post it.Thanks for the help!Thats true You could always merge it somehow with this script that detects the length of the textarea and recognises backspace: http://www.dynamicdrive.com/dynamicindex16/limitinput.htm -
Does anyone know how to make a textarea grow vertically as the user enters text? IE6 does this if you set Display: visible. I know it's an IE bug, but it's the behavior I want and can't get other browsers to do it. Hopefully there is some CSS attribute that will do this.Any help is greatly appreciated!Jason
Custom attributes and XHTML?
in HTML/XHTML
Posted