HTML attributes, inline styles or style rules
By glazou on Thursday 25 September 2008, 22:04 - Mozilla - Permalink
| HTML attr | inline styles | style rules |
|
<image border="0" src="..."> |
<img style="border: 0px none" src="..."> |
#myImage { border: 0px none; } <img id="myImage" src=..."> |
The successor to Nvu will let you create style rules instead of HTML attributes or inline styles when you create an element. It already works beautifully here. I'm still struggling to find a nice and simple UI metaphor though.

Comments
> successor to Nvu
no offense intended and im not trying to bug you, but how long until that happens? any guesstimate?
I'm curious as well....
I suggest three buttons: attribute, inline, css
when you click on an element, it checks whether it has an id, the style attribute or attribute definitions (width="20") and depending on this it highlights on the buttons. All further changes ar then made in this mode.
alt-click on a button copies the current values to the new mode (all styles are moved to css or vice versa)
any chance that this will avoid to dupplicate all the create id's for each element?
If the .css contains #myimage512 #myimage513 ... it will be a nighmare ...
Have you already think at some wonderful idea to how deal with it?
Suggestion: For class rules, provide a drop down 'style list' like MS Word and Open Office provide.