Hi, I have a FRAME which can be shown in two ways: editable and non-
editable. My php program builds both representations in (nearly) the
same way. The entire page is based on information from a database
(both layout and content). On my pages I can have a textarea, for
which I set the height property in an inline style:

<TEXTAREA CLASS='inputfield' STYLE='height:80px; font-weight:bold;'
>here my text</TEXTAREA>

When my php mechanism builds the 'non-editable' representation, I
replace the TEXTAREA with a DIV tag:

<DIV CLASS='inputfield' STYLE='height:80px; font-weight:bold;'  >here
my text</DIV>

The information in the STYLE attribute is picked up from a database,
meaning, I do not know in advance which styles are defined. In this
case I want to 'unset' the height property. I've tried to ADD a second
STYLE attribute: STYLE='height:auto':

<DIV CLASS='inputfield' STYLE='height:80px; font-weight:bold;'
STYLE='height:auto;'>here my text</DIV>

This however does either nothing (example above) or also resets the
font-style (when I switch both STYLE definitions).

My questions:
1. is it allowed to use two inline STYLE definitions in the same tag
2. is there a way to conditionally apply an inline style (e.g. when
I'm a DIV, do not apply height, when I'm a TEXTAREA, do apply the
height)
3. is there a way (inline) to reset a previously defined style (e.g.
through the class)
Thanks
Insomniux

--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to