HTML / CSS Web Log Entries

Showing 16 - 30 of 39   < Prev | Next >

What Does It Mean To Be A CSS Class?

Posted: February 11, 2008 at 3:29 PM by Ben Nadel

Tags: HTML / CSS

This last week, I started converting a prototype application into some really clean XHTML and CSS. As I was doing this, I kept finding it hard to choose the most appropriate CSS class names. As I started to get more frustrated, I was reminded of OOP guru, Hal Helms . In the past, both in presentations and in face-to-face conversation, Hal Helms w... read more »

Comments (13)  |  Post Comment  |  Ask Ben  |  Permalink



Using Inline List Elements

Posted: December 31, 2007 at 9:46 AM by Ben Nadel

Tags: HTML / CSS

List elements (the LI within UL and OL elements) are, by default, block level elements. As we, as a community, have moved more towards web standards, many of us have began to use lists for our navigation claiming that semantically, navigation is a "list" of links to sections of our site. To do this, many of us, myself included, have turned list el... read more »

Comments (6)  |  Post Comment  |  Ask Ben  |  Permalink


Easy Print CSS Integration - NoPrint (Thanks Rick Osborne!)

Posted: December 31, 2007 at 8:23 AM by Ben Nadel

Tags: HTML / CSS

Last week, I talked about a little bit about a revelation that I had as far as print CSS vs. printer friendly pages go. I had said that print CSS was optimized to make haphazard printing better and printer friendly pages were optimized for purposeful printing. In response to this, Rick Osborne had some very good comments. For starters, he made... read more »

Comments (6)  |  Post Comment  |  Ask Ben  |  Permalink



Print CSS vs. Printer Friendly Format

Posted: December 28, 2007 at 5:20 PM by Ben Nadel

Tags: ColdFusion, HTML / CSS

It used to be that the way I created the printer friendly version of a page was with a logical step inside of my header and footer. See, most of my pages include a header and a footer template: <!--- Include header template. ---> <cfinclude template="_header.cfm"> <!--- CODE. ---> <!--- Include footer template. -... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink


David Stamm On Styling Form Elements

Posted: December 7, 2007 at 8:27 AM by Ben Nadel

Tags: HTML / CSS, Work

David Stamm, a colleague of mine, sometimes referred to as the "Secret Weapon", feels very strongly about the styling of form elements. Specifically, he feels that we as web developers should not try to style form elements - the look and feel of form elements is determined both by the computer's operating system and the given browser and it doesn'... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


How Many HTML Elements Can You Name in 5 Minutes?

Posted: November 20, 2007 at 7:52 AM by Ben Nadel

Tags: HTML / CSS

I just got this fun little link off of Michael Porter's ColdFusion and Flex Blog . I was able to name 56 HTML elements, but more shockingly, I couldn't remember 35 elements! Of the 35 that I couldn't name, I don't even know what some of them are; I guess it's time to hit the books again. You should check it out, it's a fun game . ... read more »

Comments (12)  |  Post Comment  |  Ask Ben  |  Permalink


CSS Background Images Using Percentage Positioning

Posted: October 15, 2007 at 7:20 AM by Ben Nadel

Tags: HTML / CSS

One of the techniques that Dan Cederholm uses widely in Bulletproof Web Design is the positioning of background images using percentages. Up until now, I have only ever used either pixel placement or keyword placement using TOP or LEFT to position background images. As such, I was a bit confused as to how the percentage positioning even worked. To... read more »

Comments (1)  |  Post Comment  |  Ask Ben  |  Permalink


Bulletproof Web Design By Dan Cederholm (Thanks Javier Julio!)

Posted: October 15, 2007 at 7:00 AM by Ben Nadel

Tags: Books, HTML / CSS

On the enthusiastic recommendation by Javier Julio , I read and just finished the book Bulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS. This book is awesome and a must-read for everyone in the web development industry. It has completely changed the way I think about building web site fr... read more »

Comments (7)  |  Post Comment  |  Ask Ben  |  Permalink


Images Can Have CSS Padding - Crazy! (Saucy)

Posted: October 1, 2007 at 8:03 AM by Ben Nadel

Tags: HTML / CSS

I was sitting in Union Square Sunday morning, reading through Bulletproof Web Design (as recommended by Javier Julio ) when I came across an example that used padding on an image element. I had never seen this before, and frankly, it does not seem intuitive at all. I can't even believe that it works. Images seem like the basic building blocks o... read more »

Comments (31)  |  Post Comment  |  Ask Ben  |  Permalink


IE Has Correct Box Model In Standards Compliant Mode

Posted: September 14, 2007 at 10:24 AM by Ben Nadel

Tags: HTML / CSS

Internet Explorer (IE) has had a different CSS box model than the Mozilla based browsers for a long time - or so I thought. As a hold-over from the "browser wars", I have come up with techniques to deal with the fact that CSS padding gets added to Mozilla's explicitly defined box widths, while in IE padding gets absorbed by the width of the box mo... read more »

Comments (24)  |  Post Comment  |  Ask Ben  |  Permalink


The CTRL+SHIFT+S Test For Proper Page Architecture

Posted: July 24, 2007 at 9:16 AM by Ben Nadel

Tags: HTML / CSS, Work

As of late, I have been really getting into trying to develop with tight CSS and web standards compliance. The other day, one of my co-workers, David Stamm (aka The Secret Weapon), told me that in FireFox's web developer plugin , the key stroke CTRL+SHIFT+S will turn on and off all style sheets in the current page. Using this during development... read more »

Comments (13)  |  Post Comment  |  Ask Ben  |  Permalink


Fixing DIVs That Cause Content Truncation When Printing

Posted: July 23, 2007 at 7:00 AM by Ben Nadel

Tags: HTML / CSS

A client recently called me complaining that their pages weren't printing correctly. This had never been a problem before. But apparently, now that the site has been up for a while and has some good content, the pages stopped printing correctly. After trying it for myself, I was irked to see that indeed, the first page printed but then none of the... read more »

Comments (20)  |  Post Comment  |  Ask Ben  |  Permalink


Using BODY ID As A Back To Top Page Anchor

Posted: July 11, 2007 at 10:35 AM by Ben Nadel

Tags: HTML / CSS

Traditionally, I think a lot of people use a named Anchor tag to create a "Back To Top" page anchor: <a name="top"></a> I know that I've done that. But, it always felt a bit ganky to me. I mean, the first element in your page is a useless link? That just feels wrong, doesn't it? Just recently, I found out that you can refer to e... read more »

Comments (14)  |  Post Comment  |  Ask Ben  |  Permalink


Sandra Clark Rocked My World

Posted: July 11, 2007 at 7:50 AM by Ben Nadel

Tags: HTML / CSS

I'm not just a web developer, I'm a ColdFusion applications developer. I'm also a graphic designer, a user interface designer, and I try to keep a constant view of the overall user experience in mind. Just like the lot of you, I have to employ many different skill sets to get work done on a daily basis. As such, there's always about a thousand dif... read more »

Comments (18)  |  Post Comment  |  Ask Ben  |  Permalink


My Shortie: Ray Camden's Beginner ColdFusion Contest (Monster Maker)

Posted: May 16, 2007 at 9:19 AM by Ben Nadel

Tags: AJAX, ColdFusion, HTML / CSS, Javascript / DHTML

Now that Ray Camden's Beginner ColdFusion Content has ended, I can discuss my unofficial entry. Seeing as I am not a beginner, I could not technically enter the contest, but I thought it would be a cool little project to have a go at, especially since I am not tremendously proficient with CFCs and object oriented programming (OOP). Before I get... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink

Showing 16 - 30 of 39   Pages: 1 2 3 < Prev | Next >
Recent Blog Comments
Nov 22, 2009 at 4:03 AM
jQuery Live() Method And Event Bubbling
C_fieri ... read »
Nov 22, 2009 at 1:56 AM
Learning ColdFusion 9: Using CFQuery In CFScript Can Enable SQL Injection Attacks
Why adobe would give you script equivalent of cfquery is beyond me. I love cfquery tag because it helps me wriite clean sql, and get away from the horrible jdbc queries If I wanted to write javali ... read »
Nov 22, 2009 at 1:45 AM
Streaming Text Using ColdFusion's CFContent Tag And The Variable Attribute
The reason you would want to do this is to stream. Ack json/xml files to ria clients I used thus technique before because putting json in response stream causes debugging info to come thru As well a ... read »
Nov 21, 2009 at 6:47 PM
Hal Helms - Real World Object Oriented Development, Sarasota - Day Five
@charlie griefer, Thank you.. ... read »
Nov 21, 2009 at 5:15 PM
Using ColdFusion Structures To Remove Duplicate List Values
@Jose Galdamez, Oh heh yeah I didn't paste the whole code. I should have defined the vars -- my bad. It's fixed thou. Thanks. ... read »
Nov 21, 2009 at 4:49 PM
Styling The ColdFusion 8 WriteToBrowser CFImage Output
Great work yet again Ben! Whilst I didn't use this whole code, I copied some of your regex code for a similar problem with the lack of an alt attribute and unescaped ampersands in CFIMAGE for Railo 3 ... read »
Nov 21, 2009 at 1:13 PM
My First ColdFusion Builder Extension - Encrypting And Decrypting CFM / CFC Files
@Ben, Because I am pedantic, I just want to make sure that everyone knows there is absolutely no encryption going on. There is only encoding and obfuscation. The cfencode tool only obfuscates your C ... read »
Nov 21, 2009 at 12:28 PM
Using ColdFusion Structures To Remove Duplicate List Values
@Jody I can't seem to get your code sample to work. If you are still having problems, try this code out and see if it gets you what you wanted. <!--- Comma delimited list with various duplicates ... read »