Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS/HTML question

Reply
Thread Tools

CSS/HTML question

 
 
DrewC
Guest
Posts: n/a
 
      08-06-2007
I am getting into CSS and was wanting a little clarity on what each is good
for. I know CSS defines how content is displayed. But, for example, could I
define the entire layout of a page (including table/cell deminsions) within
it?

The CSS examples i've seen show how you can affect how content is displayed
within cells and whatnot, but the I couldn't see where the actual deminsions
of the cells.

So, I guess my question is, when would html be used and when will CSS be
used.


 
Reply With Quote
 
 
 
 
FFMG
Guest
Posts: n/a
 
      08-06-2007

Hi,

I am displaying a report in a two columns table, (500px and 200px).
The second col, (200px), displays a url.
But sometimes the url is longer than 200px and the columns is wider
than 200px.

Because I can have more than one table on the page the display appears
broken.
So I would rather the url be forcefully wrapped to the next line rather
than breaking my display.

Would that be possible?

How can I do that?

Thanks

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=19138

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

 
Reply With Quote
 
 
 
 
Ben C
Guest
Posts: n/a
 
      08-06-2007
On 2007-08-06, FFMG <> wrote:
>
> Hi,
>
> I am displaying a report in a two columns table, (500px and 200px).
> The second col, (200px), displays a url.
> But sometimes the url is longer than 200px and the columns is wider
> than 200px.
>
> Because I can have more than one table on the page the display appears
> broken.
> So I would rather the url be forcefully wrapped to the next line rather
> than breaking my display.
>
> Would that be possible?
>
> How can I do that?


The only way to do it is to put a zero-width space between each
character (​). There is a proprietary IE property also suggested
for CSS 3 that does this, but nothing in CSS 2.1
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      08-06-2007
Scripsit Ben C:

>> So I would rather the url be forcefully wrapped to the next line
>> rather than breaking my display.

- -
> The only way to do it is to put a zero-width space between each
> character (​).


The zero-width space character should not be expected to work consistently
across browsing situations. In particular, it may well result in the display
of a symbol for an unrepresentable character, if a browser does not
recognize the special meaning of the character and does not even find a
glyph for it in the available fonts.

Note that there is no requirement in HTML specifications that the zero-width
space be processed in any particular way, except that it be treated as a
whitespace character. The rules of HTML do not require conformance to the
Unicode Standard, or its line breaking rules in particular. It's more or
less the general idea that the zero-width space should be treated as
allowing a line break, but this is not a requirement.

Using <wbr> is safer, despite being "nonstandard". It works in a great
majority of browsing situations, and it causes no harm (it is simply
ignored) when it does not work.

Note that URLs should not be broken arbitrarily across line but only at some
reasonable breaking points, like after a "/". So <wbr> should be inserted at
selected positions only.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      08-06-2007
DrewC wrote:

> I am getting into CSS and was wanting a little clarity on what each is
> good for. I know CSS defines how content is displayed. But, for
> example, could I define the entire layout of a page (including
> table/cell deminsions) within it?


Forget tables for layout. Use them for tabular data.
Look at some of these templates:
http://www.maxdesign.com.au/presentation/page_layouts/
http://benmeadowcroft.com/webdev/css...ft-column.html

> The CSS examples i've seen show how you can affect how content is
> displayed within cells and whatnot, but the I couldn't see where the
> actual deminsions of the cells.


Forget "cells".

> So, I guess my question is, when would html be used and when will CSS
> be used.


HTML is for content, CSS is for display (including the layout). See
these pages as well:
http://allmyfaqs.net/faq.pl?AnySizeDesign
http://allmyfaqs.net/faq.pl?Tableless_layouts
http://k75s.home.att.net/fontsize.html

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
Ben C
Guest
Posts: n/a
 
      08-06-2007
On 2007-08-06, Jukka K. Korpela <> wrote:
> Scripsit Ben C:
>
>>> So I would rather the url be forcefully wrapped to the next line
>>> rather than breaking my display.

> - -
>> The only way to do it is to put a zero-width space between each
>> character (​).

>
> The zero-width space character should not be expected to work consistently
> across browsing situations. In particular, it may well result in the display
> of a symbol for an unrepresentable character, if a browser does not
> recognize the special meaning of the character and does not even find a
> glyph for it in the available fonts.
>
> Note that there is no requirement in HTML specifications that the zero-width
> space be processed in any particular way, except that it be treated as a
> whitespace character. The rules of HTML do not require conformance to the
> Unicode Standard, or its line breaking rules in particular. It's more or
> less the general idea that the zero-width space should be treated as
> allowing a line break, but this is not a requirement.
>
> Using <wbr> is safer, despite being "nonstandard". It works in a great
> majority of browsing situations, and it causes no harm (it is simply
> ignored) when it does not work.


Ah, now I understand. I remember you suggesting <wbr> for this before,
but didn't know why.
 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      08-06-2007
FFMG wrote:
>
> Hi,


Hi. Dump the clunky web gateway to Usenet newsgroups, get a real news
client, and subscribe to this newsgroup the right way.


--
Blinky RLU 297263
Killing all posts from Google Groups.
Except in Thunderbird, which can't filter that well.
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
 
Reply With Quote
 
FFMG
Guest
Posts: n/a
 
      08-07-2007

Jukka K. Korpela;85512 Wrote:
> Scripsit Ben C:
>
> >> So I would rather the url be forcefully wrapped to the next line
> >> rather than breaking my display.

> - -
> > The only way to do it is to put a zero-width space between each
> > character (​).

>
> The zero-width space character should not be expected to work
> consistently
> across browsing situations. In particular, it may well result in the
> display
> of a symbol for an unrepresentable character, if a browser does not
> recognize the special meaning of the character and does not even find
> a
> glyph for it in the available fonts.
>
> Note that there is no requirement in HTML specifications that the
> zero-width
> space be processed in any particular way, except that it be treated as
> a
> whitespace character. The rules of HTML do not require conformance to
> the
> Unicode Standard, or its line breaking rules in particular. It's more
> or
> less the general idea that the zero-width space should be treated as
> allowing a line break, but this is not a requirement.
>
> Using <wbr> is safer, despite being "nonstandard". It works in a great
> majority of browsing situations, and it causes no harm (it is simply
> ignored) when it does not work.
>
> Note that URLs should not be broken arbitrarily across line but only at
> some
> reasonable breaking points, like after a "/". So <wbr> should be
> inserted at
> selected positions only.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/


Thanks for the tip.

I will use <wbr>

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=19138

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

 
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
question row filter (more of sql query question) =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 2 10-06-2005 01:07 PM
Quick Question - Newby Question =?Utf-8?B?UnlhbiBTbWl0aA==?= ASP .Net 4 02-16-2005 11:59 AM
Question on Transcender Question :-) eddiec MCSE 6 05-20-2004 06:59 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Syntax Question - Novice Question sean ASP .Net 1 10-20-2003 12:18 PM



Advertisments