Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Text Only Page

Reply
Thread Tools

Text Only Page

 
 
Chris
Guest
Posts: n/a
 
      07-23-2006
My layout will be totally CSS driven and the content will be pulled out of a
database. This content may well have images etc in it. Beyond some kind of
regular expression to strip out certain tags is there a more elegant CSS
solution to creating a text only page. I was thinking of setting the image
tag etc within the content div to invisible but that might be a bit of a
hack. I just was wondering what would be considered the proper standards
approach.


 
Reply With Quote
 
 
 
 
Alan J. Flavell
Guest
Posts: n/a
 
      07-23-2006
On Sun, 23 Jul 2006, Chris wrote:

> My layout will be totally CSS driven


Have you considered first evaluating what the real problem is, before
fixing the mechanics of a solution?

> and the content will be pulled out of a database. This content may
> well have images etc in it. Beyond some kind of regular expression
> to strip out certain tags is there a more elegant CSS solution to
> creating a text only page.


What are you aiming to achieve by this? My best advice, on the basis
of observing past results, is that generating a text-only page is a
pointless distraction. Concentrate on creating a single any-browser
page which will calmly adapt itself to any situation in which it finds
itself. Text-only browsers absolutely don't need text-only pages -
they simply won't load the images, and will display the alt text
instead. So if that's your aim, concentrate on making the alt texts
really work.

Once upon a time, the BBC News site news.bbc.co.uk tried creating
text-only pages (and their www.bbc.co.uk site still does), but they
seemed to me to be rather pointless. I can get a better text-only
result by choosing my preferred browser settings - a technique which
should work on /any/ adequately-made (i.e flexible) site. Their alt
texts had been badly chosen, and they could have got better results
overall by dealing with /that/ problem.

What their News site /now/ offers is a "Low graphics" version, which
admittedly does have some kind of logic behind it, for those with
limited bandwidth or limited display.

regards
 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      07-23-2006
To further the education of mankind, "Chris" <(E-Mail Removed)>
vouchsafed:

> My layout will be totally CSS driven and the content will be pulled
> out of a database. This content may well have images etc in it. Beyond
> some kind of regular expression to strip out certain tags is there a
> more elegant CSS solution to creating a text only page. I was thinking
> of setting the image tag etc within the content div to invisible but
> that might be a bit of a hack. I just was wondering what would be
> considered the proper standards approach.


Setting the img tag invisible would be pointless. Setting it to
display:none might be more appropriate but just as futile.

A text-only layout would/should be quite different than an imaged one which
strongly suggests that a different layout is needed. Also, what about
background images? Just make a different page and avoid the convolutions
of misapplied css.

--
Neredbojias
Infinity has its limits.
 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      07-24-2006
Chris wrote:

> My layout will be totally CSS driven and the content will be pulled out of a
> database. This content may well have images etc in it. Beyond some kind of
> regular expression to strip out certain tags is there a more elegant CSS
> solution to creating a text only page.


Don't create a text-only page.

One of the fundamental points behind CSS is that it removes the need to
have "print friendly", "text only", "large type" and "accessible" pages
as special pages. You stick up one page, you (optionally) attach
different media-specific CSS to it, then you let the client-side work
the rest out for itself.

It's very rare to need a "text only" page. Even as a specialised page,
the distinction isn't about being "text only", it's about still working
just as well without images. Good image-based CSS design delivers this
anyway, because you've stopped making the workable presentation of text
dependent on additional tricks with images. As a result then just
letting the client-side throw the images away leaves a still-usable
page behind.

I doubt you need a text-only page. I believe good CSS can deliver
everything you do need, just by following basic good practice. To say
any more we'd really have to know more detail about what you're trying
to achieve here.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving only the text portion of a web page googler Perl Misc 1 05-09-2007 02:37 AM
My boss so cheap!! Our ASP.NET only have 256MB only! How to release request used memory when Page Unload() event raise? ABC ASP .Net 7 01-13-2006 03:23 PM
Controlling text in a Text Area or Text leo ASP General 1 12-05-2005 01:13 AM
Text boxes and read-only text Julie ASP .Net 2 05-12-2004 06:04 AM
How to make a page stay open only for few soconds, then redirect automaticaly to another page NWx ASP .Net 3 02-16-2004 05:21 PM



Advertisments