Previous Message
Next Message

Re: [css-d] Designing In A One Browser Environment

Sent by Joseph A Nagy Jr Enterprises on 16 January 2003 18:06


Geoff Sheridan wrote:
>> Okay, did so. It did work as in the pic, but that is a very cracked 
>> setting. I full well expected the border, background and the rest of 
>> the attributes to only go so far around the text, not across the whole 
>> screen. I also browse with the window maximized.
> 
> 
> To get the effect you're after, either set a width explicitly, or apply 
> the borders etc to an inline element. This is normal. Example:
> 
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
>     <meta http-equiv="content-type" content="text/html; 
> charset=iso-8859-1" />
>     <title>Block vs Inline</title>
>     <style type="text/css">
>     p {border:1px solid red;}
>     span {border:1px solid red;}
>     </style>
> </head>
> <body>
> <p>p is a block element so this is as wide as the page</p>
> <span>this border snugly fits the inline element's contents</span>
> 
> </body>
> </html>

Easy enough I imagine. Thanks. :-)

I still have the problem of only having Mozilla 1.2.1 (and 1.3a) and NS 
4.78. I guess I could just occassionaly send a site check request.
-- 
Joseph A Nagy Jr
Joseph A Nagy Jr Enterprises
E-mail: [EMAIL-REMOVED]
ICQ: 18115568 AIM: pres CTHULHU
MSN: [EMAIL-REMOVED]
Yahoo! IM: pagan_prince

 From Perl 5.8.0's ./Configure:
"Checking to see how your cpp does stuff like catenate tokens...
Oh!  Smells like ANSI's been here.
We can catify or stringify, separately or together!"
"You have POSIX termios.h... good!"

http://rpgcn.homelinux.org/~jan-jr/i-am-not-dead/
Previous Message
Next Message

Message thread: