Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Web pages

 
Thread Tools Search this Thread
Old 12-20-2006, 01:11 AM   #1
Default Web pages


I have a web page in two versions of the same page. One uses absolute
positioning and the other relative positioning.
Both work very nicely in IE 6 but I'm having trouble with both in Firefox
and Netscape 7. It's the same problem for each version,
#container3, the main body of the web page doesn't "fit" correctly into its
slot in Firefox and Netscape.

Any help is greatly appreciated.

Thanks.

Michael Bartos


http://www.panamphoenix.com/index2b.htm

and http://www.panamphoenix.com/index2c.htm





Michael Bartos
  Reply With Quote
Old 12-20-2006, 01:50 AM   #2
dorayme
 
Posts: n/a
Default Re: Web pages
In article <45888eb0$0$17201$>,
"Michael Bartos" <> wrote:

> I have a web page in two versions of the same page. One uses absolute
> positioning and the other relative positioning.
> Both work very nicely in IE 6 but I'm having trouble with both in Firefox
> and Netscape 7. It's the same problem for each version,
> #container3, the main body of the web page doesn't "fit" correctly into its
> slot in Firefox and Netscape.
>


Nor in Safari...

>
> http://www.panamphoenix.com/index2b.htm
>
> and http://www.panamphoenix.com/index2c.htm


Which one uses absolute?

Use a validator and fix up the things it mentions, especially the
doc type.

I was able to fiddle with your dims to make it look "nice" in FF
over a small range of font-sizes but then it breaks. These
"fixed" size designs are quite brittle.

Don't use mm for dims on borders for web sites.

--
dorayme


dorayme
  Reply With Quote
Old 12-20-2006, 02:06 AM   #3
John Hosking
 
Posts: n/a
Default Re: Web pages
Michael Bartos wrote:
> I have a web page in two versions of the same page. One uses absolute
> positioning and the other relative positioning.
> It's the same problem for each version,
> #container3, the main body of the web page doesn't "fit" correctly into its
> slot in Firefox and Netscape.
>
> http://www.panamphoenix.com/index2b.htm
> and http://www.panamphoenix.com/index2c.htm
>


They both look relative to me.

Here's your CSS, revised:

body {margin-left: 0px; font-family: "Lucida Sans", Verdana; }

#container1 {
border:0px; width:760px; height:50px;
background-color:#CC6600; color:#fffbd0;
padding-top:10px; padding-bottom:0px; }

#container2 {
border:0px; width:100px; padding-left:10px;
height:525px; background-color:#FF9900; color:#fff; }

#container3 {
border:0px; padding-left:25px; padding-right:25px;
width:600px; height:525px;
margin-left:110px;
background-color:#FFFBD0;
position:relative; top:-525px; left:0px; }

#container4 {
border:0px; padding-left:25px;
width:760px; height:40px;
background-color:#C13100; color:#fff;
position:relative; top:-525px; left:0px; }

You were leaving the padding out of your calculations. If container2 is
525px tall, so should container3 be. And that's how much the negative
offset vertically should be. The left offset for 3 should be 110px,
because the width (100) + padding (10) for 2 dictates it. And so on.

BTW, "container2" is kind of a meaningless name for a div; why not
"samples", "footer", etc.?

Your biggest problem is the fact that you're specifying pixels. Try a
fluid design and consider that the font sizes might be different.

What happens if a visitor lacks both Lucida Sans and Verdana? Try adding
sans-serif as the last family. (And drop Verdana.)

Good luck. HTH.
--
John


John Hosking
  Reply With Quote
Old 12-20-2006, 03:35 AM   #4
mvbart
 
Posts: n/a
Default Re: Web pages
Thanks for your reply. Abslute positioning is now in 2b. My mistake. In
working with the files, I got the names confused and uploaded two with
relative positions. Let me work with your suggestions. Appreciate your help.

Michael

dorayme wrote:
> In article <45888eb0$0$17201$>,
> "Michael Bartos" <> wrote:
>
>
>>I have a web page in two versions of the same page. One uses absolute
>>positioning and the other relative positioning.
>>Both work very nicely in IE 6 but I'm having trouble with both in Firefox
>>and Netscape 7. It's the same problem for each version,
>>#container3, the main body of the web page doesn't "fit" correctly into its
>>slot in Firefox and Netscape.
>>

>
>
> Nor in Safari...
>
>
>>http://www.panamphoenix.com/index2b.htm
>>
>>and http://www.panamphoenix.com/index2c.htm

>
>
> Which one uses absolute?
>
> Use a validator and fix up the things it mentions, especially the
> doc type.
>
> I was able to fiddle with your dims to make it look "nice" in FF
> over a small range of font-sizes but then it breaks. These
> "fixed" size designs are quite brittle.
>
> Don't use mm for dims on borders for web sites.
>




mvbart
  Reply With Quote
Old 12-20-2006, 03:38 AM   #5
mvbart
 
Posts: n/a
Default Re: Web pages
Thanks for your reply. Abslute positioning is now in 2b. My mistake. In
working with the files, I got the names confused and uploaded two with
relative positions. I'm going to follow your suggestions--including the
name scheme. Appreciate your help.

Michael

John Hosking wrote:
> Michael Bartos wrote:
>
>> I have a web page in two versions of the same page. One uses absolute
>> positioning and the other relative positioning.
>> It's the same problem for each version,
>> #container3, the main body of the web page doesn't "fit" correctly
>> into its slot in Firefox and Netscape.
>>
>> http://www.panamphoenix.com/index2b.htm
>> and http://www.panamphoenix.com/index2c.htm
>>

>
> They both look relative to me.
>
> Here's your CSS, revised:
>
> body {margin-left: 0px; font-family: "Lucida Sans", Verdana; }
>
> #container1 {
> border:0px; width:760px; height:50px;
> background-color:#CC6600; color:#fffbd0;
> padding-top:10px; padding-bottom:0px; }
>
> #container2 {
> border:0px; width:100px; padding-left:10px;
> height:525px; background-color:#FF9900; color:#fff; }
>
> #container3 {
> border:0px; padding-left:25px; padding-right:25px;
> width:600px; height:525px;
> margin-left:110px;
> background-color:#FFFBD0;
> position:relative; top:-525px; left:0px; }
>
> #container4 {
> border:0px; padding-left:25px;
> width:760px; height:40px;
> background-color:#C13100; color:#fff;
> position:relative; top:-525px; left:0px; }
>
> You were leaving the padding out of your calculations. If container2 is
> 525px tall, so should container3 be. And that's how much the negative
> offset vertically should be. The left offset for 3 should be 110px,
> because the width (100) + padding (10) for 2 dictates it. And so on.
>
> BTW, "container2" is kind of a meaningless name for a div; why not
> "samples", "footer", etc.?
>
> Your biggest problem is the fact that you're specifying pixels. Try a
> fluid design and consider that the font sizes might be different.
>
> What happens if a visitor lacks both Lucida Sans and Verdana? Try adding
> sans-serif as the last family. (And drop Verdana.)
>
> Good luck. HTH.




mvbart
  Reply With Quote
Old 12-20-2006, 06:40 AM   #6
Toby Inkster
 
Posts: n/a
Default Re: Web pages
John Hosking wrote:

> body {margin-left: 0px; font-family: "Lucida Sans", Verdana; }
>
> What happens if a visitor lacks both Lucida Sans and Verdana? Try adding
> sans-serif as the last family. (And drop Verdana.)


Or:

font-family: "Lucida Sans", "Lucida Sans Unicode",
"Lucida Grande", "Trebuchet MS", sans-serif;

On Windows XP the full name of Lucida Sans is "Lucida Sans Unicode", so it
might be a good idea to specify that somewhere. (One could even
argue that it's a good idea to specify LSU before LS.)

"Lucida Grande" is a font bundled with OS X (and is indeed the default UI
font for OS X) and is almost identical to Lucida Sans. (The only common
glyph that's distinguishable between the two is the number '1' which has a
bottom serif in Grande, but not Sans.)

"Trebuchet MS" is a similar, though not identical font, which was
available with earlier versions of Windows than Lucida Sans was --
Microsoft also made it available as a free download from their website,
and bundled it with Internet Explorer, so it has a very wide coverage. It
should look a little closer to Lucida Sans than a typical sans serif font
will, so I've put that in as the last named fallback.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact



Toby Inkster
  Reply With Quote
Old 12-20-2006, 08:14 AM   #7
Jukka K. Korpela
 
Posts: n/a
Default Re: Web pages
Scripsit Toby Inkster:

> On Windows XP the full name of Lucida Sans is "Lucida Sans Unicode",


No, they are two distinct fonts. Their overall designs are similar (with
considerable differences in some details - see e.g. how "ft" looks on the
two fonts), but Lucida Sans Unicode has thicker lines. In 12pt size, it
looks semi-bold as compared with 12pt Lucida Sans. Moreover, as the name
suggests, Lucida Sans Unicode has a wider coverage of characters.

> "Trebuchet MS" is a similar, though not identical font,


Similar? Hardly, any more than being a sans serif font. Look at "g", the
typical indicator of font design style. Or look at "M", or "a".

> It should look a little closer to Lucida Sans than a
> typical sans serif font will,


I wouldn't bet on that. Trebuchet MS is in many ways a nice little font,
though its diacritics are awfully placed, but it's not a better replacement
for Lucida Sans than a randomly chosen sans serif font is, I would day.
Moreover, Trebuchet MS looks considerably smaller (because it _is_ smaller,
in the sense that for a typical font size, the average height of glyphs is
smaller in Trebuchet MS than in Lucida Sans of the same size).

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



Jukka K. Korpela
  Reply With Quote
Old 12-20-2006, 09:46 AM   #8
Toby Inkster
 
Posts: n/a
Default Re: Web pages
Jukka K. Korpela wrote:

> No, they are two distinct fonts. Their overall designs are similar (with
> considerable differences in some details - see e.g. how "ft" looks on the
> two fonts), but Lucida Sans Unicode has thicker lines. In 12pt size, it
> looks semi-bold as compared with 12pt Lucida Sans. Moreover, as the name
> suggests, Lucida Sans Unicode has a wider coverage of characters.


Is LSU not just an updated version of LS, with more glyphs and better
hinting?

>> "Trebuchet MS" is a similar, though not identical font,

>
> Similar? Hardly, any more than being a sans serif font. Look at "g", the
> typical indicator of font design style. Or look at "M", or "a".


I never meant to say that they were the same. Just similar. They have a
similar feel. They're both slightly curvy humanist fonts.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact



Toby Inkster
  Reply With Quote
Old 12-20-2006, 10:12 AM   #9
Blinky the Shark
 
Posts: n/a
Default Re: Web pages
Toby Inkster wrote:

> I never meant to say that they were the same. Just similar. They
> have a similar feel. They're both slightly curvy humanist fonts.


What's a humanist font?

--
Blinky
Killfiling all posts from Google Groups
Details: http://blinkynet.net/comp/uip5.html


Blinky the Shark
  Reply With Quote
Old 12-20-2006, 11:32 AM   #10
Andy Dingley
 
Posts: n/a
Default Re: Web pages

Blinky the Shark wrote:

> What's a humanist font?


It's one that doesn't require belief in a theistic mandate as the
source of axiomatic ethical principles, but that's not important right
now.


Early 20th century sans-serif typefaces were on the ugly side. They'd
been developed as a reaction against Victorian curlicues, but hindsight
suggests that they overdid it. Helvetica was one of the early
offenders, leading to the group being named "Grotesque". When Modernism
really got started though we saw typefaces like Futura which rejected
many of the ancient principles of calligraphy in favour of constant
width lines for all strokes. These became known as the "Geometric"
typefaces.

Humanist fonts were an attempt to redress this. They re-introduced
traditional pen calligraphy practices such as basing letter shapes on
an oval rather than a circle and in varying stroke widths around the
bowl of a letter. Shapes and proportions also varied between fonts at
different sizes of the same typeface, a practice that appalled the
Geometric advocates. Gill Sans is one of the best known and most
politically motivated, but not the most representative. Goudy Sans is
perhaps the "classic" Humanist typeface. Lucida is also classed as
Humanist typeface, but not particularly distinctive as such. As Jukka
mentioned, the classic give-away for a Humanist typeface is the
lowercase "g" being composed of a pair of distinct separated ovals
above each other, rather than a circle with a single stroke descender.
If you see this "double bubble" you're probably seeing a Humanist
typeface, although not all of them (e.g. Lucida) use it.



Andy Dingley
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Canon iP4000 printer only prints test pages jumar55 Hardware 0 05-03-2009 07:22 AM
How to open Web Application pages (ASPX) in Windows application. arameshmca Software 1 02-07-2008 03:18 AM
Unable to view web pages acaravia General Help Related Topics 1 08-07-2007 05:16 AM
.NET stops compiling some aspx pages angelbrown Software 0 09-04-2006 01:48 PM
DVD web pages WTD TSKO DVD Video 0 09-11-2003 08:04 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46