PDA

View Full Version : possibly for 2006?


lummoxcooties
11-04-2005, 10:29 AM
I haven't been playing around with 2006 too much, so forgive me if these are already included.

I would to have the ability to have have all css design elements (alignment, size, color, etc) go to either an external stylesheet, or at least all go neatly between the head tags instead of having the styles go directly to the individual tags
Example:
<head>
div.cent{ width: 350px; background-color: #cc9;}
</head>

(along with a div class in the body)

instead of
<div style="width: 350px; background-color: #cc9;">
--------------------------------------------------------------
Also, I'd like to have tags like BR and IMG to close automatically to xhtml specifications when clickin on the buttons. Is there a way to program the " />" at the end?

PsychoticDude85
11-04-2005, 12:44 PM
<head>
<style type="text/css">
div.cent {
width: 350px;
background-color: #cc9;
}
</style>
</head>
<body>
<div class="cent">
<p>
Content
</p>
</div>
</body>
or

<head>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<body>
<div class="cent">
<p>
Content
</p>
</div>
</body>

lummoxcooties
11-05-2005, 05:52 PM
maybe I didn't explain myself clearly. I know how to do that, but in the "design" mode, whenever you make changes the style is applied directly where the tag is. What I would prefer is that all CSS be applied either in a separate stylesheet or like PsychoticDude85's first example automatically.

Ebo
11-14-2005, 11:36 AM
I can imagine a full-blown stylesheet feature may be a bit difficult to incorporate at such short notice...
But making the auto-inserts comply to xhtml standards must be easy to fix and makes 1st Page future-proof :)

PsychoticDude85
11-14-2005, 11:46 AM
Simple thing, design view is not for good coders, if you don't like these sort of things my advice to you is to hand code it. You get much higher quaity coding as an end result.

lummoxcooties
11-14-2005, 12:23 PM
I agree that the design mode isn't going to spit out perfect code, and I prefer hand coding anyway.

Is there an auto-insert or shortcut for the span tag in 2000? I can't seem to find it anywhere.