Ouh yes, we are .. :)If You really need to use hr -tag You can do it with JavaScript (until browsers supports it). But is it wiser use image or colorized p or some other element?Image as 1px X 1px to squeezed to size needed with width and height attributes is not bad way either. Old but still very usefull way to make lines is:Save image named as line.png (sized to 1x1 px etc) and tag:<img src="line.png" width="100%" height="2" alt="line" />Will made 100% long and 2px height "hr" to You.Javascript trick (XHTML 1.1 valid, and all other valid too)Put this to external JS-file (named as line.js), var hr = document.createElement('hr');hr.setAttribute('width', '70%');hr.setAttribute('height', 2);hr.setAttribute('class', 'hr1');// more attributes heredocument.getElementsByTagName("body")[0].appendChild(hr);
And then where ever You need hr, insert tag:<script src="line.js" type="text/javascript"> //line</script>Yes, it is 100% valid XHTML 1.1 and all others too, because there is no hr-tag in code, but still hr will work as hr should. CSS can be used, there is class named hr1 nowUse to create XHTML 1.1 valid iframe, XHTML 1.1 valid target, etc. :(Works fine with all "new" browsers (I think, ie 5.x> + all others)But still, small colorized image within squeezing it to size needed is best way todraw lines.edit:As scott100 says, <hr /> is the right way with XHTMLstill my DOM example is not ugly, or is it?