Posts tagged with 'HTML'

Useful extension for simple CSS forms

By Brigitte Simard on 19 January 2010

Forms are common on a wide variety of websites and it’s important that they’re well designed and laid-out. There are many tools and extensions to help with this and one I came across recently is a free CSS form designer extension for Dreamweaver from DMXzone.DMXzone CSS form designer extension

It allows you to create forms visually, using a simple drag and drop interface and a variety of CSS styles. It’s very useful for creating short simple forms and allows you to populate fields with default values such as days of the week or with dynamic values from a Dreamweaver record set.

There are however, a few things that could be improved with this extension. Firstly, the HTML mark-up isn’t 100% accessible as labels aren’t properly assigned to checkboxes and radio buttons (they have been implemented following an out-of-date w3c recommendation). It would also be difficult to manage a form with a complex layout with this extension, as the HTML mark-up is not really flexible and when new field elements are added, they’re automatically added at the end of the form (not within context) and have to be dragged and dropped into position. Also, the CSS produced by this tool isn’t cross-browser compatible.

So in summary, this is a useful free tool for creating short, simple forms, but to really be suitable for longer, more complex forms, the extension requires a few modifications. You can try it yourself by downloading the CSS form designer extension for free from DMXzone.

What’s your favourite Firebug feature?

By Paul McCarthy on 2 June 2009

Tags:

I think it’s probably fair to say that we (CSS developers) owe the people who created Firebug a big wet kiss. But there are still people muddling on without this wonderful Firefox toolbar.

The more time I’ve spent with Firebug, the more I’ve come to rely on it and the more I discover it can do. So it’s got me thinking, maybe there’s stuff it does that I just haven’t discovered yet.

So I’d like you to take a moment to tell me your firebug top tip, that really saves you time. It doesn’t matter how small or obvious. To get the ball rolling here are two features I love:

net-panelThe net panel - amongst other things it ensures you aren’t referencing any missing files plus checking things aren’t taking too long to load. Great for making sure you haven’t referenced any old files and that everything is neat and tidy.

box-modelThe lovely layout panel - more obvious but so useful. Just inspect an item and it’s margin, border, padding are shown as a box model diagram! Brilliant.

Let us know what your favourite Firebug feature is?

CSS pseudo class tip

By Paul McCarthy on 12 May 2009

Tags:

Having contributed to a feature in last month’s Web Designer Magazine on great CSS secrets, we thought that the blog would be a great place to share the tip we came up with for clearing a float container without extra HTML mark up:

If a floated element is nested within a box that has a border or a background colour applied to it, the floated element will not force its container to stretch all the way down (mainly in standards compliant browsers).

To force the container box to enclose the floated div(s), it needs a ‘cleared’ element added after the last floated div. Rather than adding extra HTML mark up such as a clearing div or paragraph we can use CSS.

Using the pseudo-class :after it’s possible to add content at the end of an element with the following CSS commands:

#id:after {
content:".";
clear: both;
height: 0;
visibility: hidden;
display: block;
}

Sometimes the container will also collapse in Internet Explorer. Unfortunately IE still doesn’t support the :after pseudo-class yet, so a simple declaration of height: 1% to the floated containing div will stop it from collapsing.

#id {
height:1%
}