Re: [WSG] Including a DIV element inside an HREF tag

2009-11-04 Thread Ben Lau
One alternative is perhaps to replace all block elements inside the a element into inline ones... Or the other would be to use javascript, and bind an onclick event onto the div. On Wed, Nov 4, 2009 at 11:51 PM, James O'Neill freexe...@gmail.com wrote: If you are worried about validation an

Re: [WSG] Installing More than one version of IE6

2009-07-02 Thread Ben Lau
I came across this, but I'm a bit wary of any hidden downsides to it: http://www.xenocode.com/Browsers/ On Fri, Jul 3, 2009 at 1:22 PM, Darrin Potaka dpot...@gmail.com wrote: Hi - I hope this is on topic - I'm asking because I try to author to good standards... I need to install IE 6.0

[WSG] working with line-height

2009-07-01 Thread Ben Lau
Hi list, I frequently have to work with pixel-perfect design, and I'm always having trouble with line-height in particular. Please take a look at this example: http://www.hellobenlau.net/wsg/index.html I'm wondering if there was a way to top align the text to its line-height. So say, with text

Re: [WSG] working with line-height

2009-07-01 Thread Ben Lau
trying to achieve to make it look like the design at least.. in 1 browser (just so my designers are happy). Thanks. Ben On Thu, Jul 2, 2009 at 10:34 AM, Gunlaug Sørtun gunla...@c2i.net wrote: Ben Lau wrote: http://www.hellobenlau.net/wsg/index.html I'm wondering if there was a way to top align

Re: [WSG] using skip links

2009-05-13 Thread Ben Lau
is for your second link to be skip over promotion It is not clear to me why there would need to be promotional material between the heading and the content. COuld you send a link of an example? Jon On Tue, May 12, 2009 at 8:30 PM, Ben Lau bensan...@gmail.com wrote: Hi all, I am to build

[WSG] using skip links

2009-05-12 Thread Ben Lau
Hi all, I am to build templates for a page, and below is a pseudo example of my code order: -skip to #content- [div#navigation] a name=content/a [h1] [div#promotion] [div.content] I've always believed my h1 should always come after the 'content' anchor (or within a #content div), so when screen

Re: [WSG] Implication of empty divs

2009-02-10 Thread Ben Lau
From the CSS Mastery Advanced Web Standards Solutions book by Andy Budd, and I quote: Many people mistakenly believe that a div element has no semantic meaning. However div actually stands for *division *and provides a way of dividing a document into meaningful areas. So by wrapping your main

[WSG] Implication of empty divs

2009-02-08 Thread Ben Lau
Hi all, Are there any (seriously) bad implications of having empty DIVs around your HTML document? I try to avoid using them personally, but there are cases where the visual design has forced me to add empty divs (or spans) just to achieve the look. Apart from adding extra weight and cluttering

Re: [WSG] Implication of empty divs

2009-02-08 Thread Ben Lau
. Gerard Hynes (Gmail) wrote: My advice below. Cheers, Gerard On Mon, Feb 9, 2009 at 9:33 AM, Ben Lau bensan...@gmail.com bensan...@gmail.com wrote: Hi all, Are there any (seriously) bad implications of having empty DIVs around your HTML document? I try to avoid using them personally

[WSG] issues with too many divs

2009-01-06 Thread Ben Lau
Hi all, I'm not a fan of having too many DIVs on a page, but due to complicated background designs, I'm forced to use additional wrapper DIVs just to achieve the look. Are there any major downfall in doing so apart from increasing page size? I'd like to be able to convince our designer to

[WSG] headings to divide sections

2008-11-30 Thread Ben Lau
Hi all, I know it's a good idea to have skipping links at the top of your HTML ('main content' section, 'main navigation' section), but does it help to have a heading to those sections as well? So for example: a href=#mainNavFirst level navigation/a div id=mainNav h2First level navigation/h2 ul

Re: [WSG] is there a way to force legend text shows in TWO lines?

2008-11-26 Thread Ben Lau
try white-space:normal...? On Thu, Nov 27, 2008 at 1:43 PM, tee [EMAIL PROTECTED] wrote: On Nov 26, 2008, at 6:15 PM, Ben Buchanan wrote: 2) I have a column that is 160px wide, but the text in legend is a bit longer, I added a span class, declared a width, but in Firefox, the text still

[WSG] mxing value units

2008-10-29 Thread Ben Lau
Hi, I'm just wonder if there are any repercussions in mixing value units for short-handed properties? i.e. padding: 1em 0px 1em 20px; or background:url('bg.gif') 100% 25px no-repeat; or background:url('bg.gif') right 25px no-repeat; or background:url('bg.gif') 50% bottom no-repeat; ... etc. I

[WSG] Coding for CSS3?

2008-10-02 Thread Ben Lau
Hi all, I'm having trouble deciding whether to begin coding using CSS3, such as using (but not limited to) opacity. Although the CSS validator returns an error, but it claims it'll be supported in CSS3. As far as i know, FF2, FF3, Opera and Safari already renders the opacity property, leaving

Re: [WSG] Semantic markup of a byline date/time

2008-07-16 Thread Ben Lau
Hi Jens, Normally I'd use spans for all 3 elements, but I'm quite interested to find out a better way of doing this. Did you manage to find a solution to this? Regards, Ben On Tue, Jul 15, 2008 at 5:07 PM, Jens-Uwe Korff [EMAIL PROTECTED] wrote: Hi all, I'm trying to find a semantic

[WSG] columns with matching vertical alignment

2008-07-09 Thread Ben Lau
Hi all, I would like to know the best (or at least better and simple) way to achieve this kind of design. I have uploaded a sample design image for convenience: http://www.hellobenlau.net/design.gif Basically I need to have the lists at the bottom of each columns to match up vertically, but the