Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 9th, 2008, 11:25 AM
Jon
Guest
 
Posts: n/a
Default Width Problem in Firefox

Hello all,

Would anyone be able to help shed some light on a problem I have with
the below site:

http://www.maychild.co.uk/consultancy.aspx.

It looks fine in IE, but is far to wide in Firefox. I've tried
numerous things to amend but no joy - any help would be much
appreciated,

Regards,

Jon
  #2  
Old October 9th, 2008, 12:05 PM
Irina Rempt
Guest
 
Posts: n/a
Default Re: Width Problem in Firefox

Jon wrote:
Quote:
Hello all,
>
Would anyone be able to help shed some light on a problem I have with
the below site:
>
http://www.maychild.co.uk/consultancy.aspx.
>
It looks fine in IE, but is far to wide in Firefox. I've tried
numerous things to amend but no joy - any help would be much
appreciated,
I can't see your stylesheet, but it looks as if your body text is set to
nowrap somehow. At least, it doesn't wrap, even if I make it as large as it
will get. If not-wrapping is an essential part of your presentation style
I'd recommend writing shorter paragraphs to keep the line length
manageable, but I don't think the content would suffer by wrapping.

Alternately, perhaps your footer and/or your body div is set to a fixed
width.

(I do like your colour scheme. But your body font is almost unreadably small
for people with high resolution and weakish eyesight, like me. That's
something many people do the moment they get their hands on CSS, and I wish
they wouldn't.)

Irina

--
"Of course it is happening inside your head, Harry, but why on earth
should that mean that it is not real?" --Albus Dumbledore
http://www.valdyas.org/foundobjects/index.cgi Latest: 08-Oct-2008
  #3  
Old October 9th, 2008, 04:25 PM
Anze
Guest
 
Posts: n/a
Default Re: Width Problem in Firefox


You are not using doctypes so your page looks different in FF and IE. Google
for "CSS box model" to learn more.

This is the culprit:

#rightcolumn
{
width: 830px;
padding-left: 150px;
padding-right: 150px
...
}

IE in quirks mode takes the width... Huh, I think it takes borders and
padding into width, but not margins? Not sure, I never use quirks mode.

FF on the other hand probably does the same in quirks mode as otherwise: it
takes the width, adds padding, then borders, then margin. And you end up
with 1130px wide container.

Set the DOCTYPE to Transitional and width to 530 and you'll be fine (or at
least better ;).

Hope it helps.

Best,

Anze
  #4  
Old October 10th, 2008, 01:55 AM
dorayme
Guest
 
Posts: n/a
Default Re: Width Problem in Firefox

In article
<21a77991-45fc-4832-9937-c4cb8a9c0505@b31g2000prb.googlegroups.com>,
Jon <JonMYates@gmail.comwrote:
Quote:
Hello all,
>
Would anyone be able to help shed some light on a problem I have with
the below site:
>
http://www.maychild.co.uk/consultancy.aspx.
>
It looks fine in IE, but is far to wide in Firefox. I've tried
numerous things to amend but no joy - any help would be much
appreciated,
>
Get rid of

#rightcolumn
{
width: 830px;


But, really, use a proper doctype.

Use a validator to check for errors and warnings.

--
dorayme
  #5  
Old October 10th, 2008, 02:45 PM
Bergamot
Guest
 
Posts: n/a
Default Re: Width Problem in Firefox


Jon wrote:
Quote:
>
Would anyone be able to help shed some light on a problem I have with
the below site:
>
http://www.maychild.co.uk/consultancy.aspx.
spacer.gif?

It's an unhealthy mix of HTML presentational attributes and CSS, with
far too many inline styles. As you've already discovered, debugging
rendering issues is a lot harder than it should be. Maintenance will be
a PITA, too.
Quote:
It looks fine in IE, but is far to wide in Firefox.
It's also dependent on puny type and does not adapt to my 17px minimum
font-size. The fixed height:400px on the content block is unnecessary,
let alone correct. Learn how to use floats properly and you can get rid
of such hackish code. You shouldn't need to float the content block to
begin with.
http://brainjar.com/css/positioning/
http://www.quirksmode.org/css/clearing.html
Quote:
any help would be much
appreciated,
Strip out all the presentational junk and clean up the code, using
better semantics. You don't even have a single heading element in there,
which isn't going to do search engines any favors, let alone users.
After that you should add in CSS where necessary, but don't go overboard
with over-specifying every element. Learn how to use things like
descendant selectors to keep it simple, and stick with HTML 4.01 Strict.
More reading for you:
http://microformats.org/wiki/posh
http://www.456bereastreet.com/archiv...ectors_part_1/
http://www.cs.tut.fi/~jkorpela/html2css.html
http://css.maxdesign.com.au/listamatic/

BTW, there is some kind of weird character on the home page, in the
middle column after "Microsoft Windows". I tried overriding the
character encoding, but nothing fixed it. The dot.gif background image
in the banner is also positioned incorrectly, presumably being dependent
on a puny font-size. It doesn't change position on different pages, so
I'm not sure what its purpose is. You also forget to set a page
background color. My browser default is not white, and it shows.
http://www.bergamotus.ws/screenshots/maychild.png

--
Berg
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles