Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CSS problem... in IE of course...

CSS problem... in IE of course...
Thread Tools
Mac Guru
Mac Elite
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 25, 2003, 10:29 PM
 
I'm having a little issue with Internet Explorer and CSS.

I'm including some pics of my redesign for my site and I'll point out the issues I'm having.



This is how it SHOULD look...



Ok, the two issues I'm having are that the right border on the main content is ramming into the navigation and that the right bar of extra content is out of control!

Any clues as to how I can fix this?

Thanks!
Mac Guru
     
Sage
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Nov 25, 2003, 11:04 PM
 
Well, um... could you provide the style sheet code so that we can see what's happening?
     
Mac Guru  (op)
Mac Elite
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 25, 2003, 11:45 PM
 
my bad, sorry

Code:
body { background : #FFFFFF; font: 12px Arial; color: #000000; margin-right: 45px; margin-left: 45px; margin-bottom: 15px; } a:link { color : #000066; text-decoration : none; } a:hover { color : #B42B2B; text-decoration : underline; text-shadow: 0 0 2px #F00; } a:active { color : #FFF; text-decoration : underline; text-shadow: 0 0 2px #FFF; } a:visted { color : #000; text-decoration: underline; } .menu a { color : #000066; text-align: center; text-decoration: none; text-shadow: 0px 1px 2px #CCC; padding: 3px 10px 3px 10px; } .menu a:hover { color : #B42B2B; text-shadow: 0 0 2px #F00; background-color: #ccc; text-decoration: none; } .menu a:active { color : #FFF; text-decoration : underline; text-shadow: 0 0 2px #FFF; background-color: #ccc} .header { background-image: url(img/header_bg.jpg); height: 56px; background-color: #B42B2B; border-right: 1px solid #999; border-left: 1px solid #999; margin-bottom: 3px; } .menu { width: 100%; border: 1px solid #ccc; } #rightcontent { position: absolute; right:45px; width:175px; border-bottom: 1px solid #aaa; border-right: =; padding-right: 3px; top: 90px; padding-bottom: 3px; } #content { width: 70%; border-bottom: 1px solid #ccc; border-right: 1px solid #aaa; padding-right: 5px; padding-bottom: 5px; } h1 { background-color: #CC6666; color: #fff; font-size: 16px; font-weight: bold; text-shadow: 0px 1px 1px #000; padding: 2px 2px 2px 8px; border: 1px solid #993333; } h2 { background-color: #CC6666; color: #FFFFFF; text-shadow: 0px 1px 1px #000; text-align: center; font-size: 12px; padding-top: 2px; padding-bottom: 2px; border: 1px solid #993333; }
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 26, 2003, 05:04 AM
 
try this
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
derbs
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status: Offline
Reply With Quote
Nov 26, 2003, 10:49 AM
 
or drop the css and use TABLES!

     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 26, 2003, 11:22 AM
 
Originally posted by derbs:
or drop the css and use TABLES!

BLASPHEMY! i'm gonna tell Zeldman on you!

i'm coding with tables right now, actually
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
derbs
Senior User
Join Date: May 2001
Location: Nottingham, UK
Status: Offline
Reply With Quote
Nov 26, 2003, 12:41 PM
 
Originally posted by philzilla:
i'm coding with tables right now, actually
hahaha! I remember doing this job at work, quite a big website, about 9 months ago.

I decided to do the layout with CSS. Anyway to cut a long story short, after numerous code hacks and browser testing, i scrapped it and rebuilt it with tables, cos it looked shite Lost about 2 weeks work...
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Nov 26, 2003, 01:00 PM
 
Originally posted by derbs:
hahaha! I remember doing this job at work, quite a big website, about 9 months ago.

I decided to do the layout with CSS. Anyway to cut a long story short, after numerous code hacks and browser testing, i scrapped it and rebuilt it with tables, cos it looked shite Lost about 2 weeks work...
I regularly used to have to code 90k+ HTML pages in Notepad, full of nested tables. When I was in a restaurant one night after work, I was told,
�I�m afraid there�s a problem with your table, Sir�
�Check both the tr & td tags are closed properly,� I said, without even thinking.
The look of confusion on the guy�s face was classic, until I realised and explained.

my excuse today is... i'm using them for tabular data! *shock*
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
dillerX
Professional Poster
Join Date: Mar 2001
Location: Pit Slab #35
Status: Offline
Reply With Quote
Nov 26, 2003, 04:52 PM
 
CSS is God.

No more tables for this guy.

Well, for the most part. The transition was painful, but thanks to Philzman, on track.
I tried to sig-spam the forums.
ADVANTAGE Motorsports Marketing, Inc. • speedXdesign, Inc.
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Nov 27, 2003, 08:54 AM
 
Originally posted by dillerX:
CSS is God.

No more tables for this guy.

Well, for the most part. The transition was painful, but thanks to Philzman, on track.
There's still one thing CSS can't do properly - maximum widths (as opposed to fixed widths) on block level elements. This is one reason that I'm forced to still use tables for layout, dammit
Computer thez nohhh...
     
Mac Guru  (op)
Mac Elite
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 30, 2003, 11:19 PM
 
ok so I'm still having issues with it, after numerous attempts with the suggested box model hack, I couldn't figure it out and I'm back to square one... any ideas?

Mac Guru
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Dec 1, 2003, 12:23 AM
 
Originally posted by Mac Guru:
ok so I'm still having issues with it, after numerous attempts with the suggested box model hack, I couldn't figure it out and I'm back to square one... any ideas?

Mac Guru
Where's the link to your page?

I've just finished a god-awful job with someone else's design, but it did teach me some tip-top tricks with CSS and IE for [hack, cough] PC (rinses mouth out).

CSS is way cool and tables are (mostly) dead
Computer thez nohhh...
     
Mac Guru  (op)
Mac Elite
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 1, 2003, 09:51 AM
 
My bad

beta.jamesmeister.com

Mac Guru
     
Mac Guru  (op)
Mac Elite
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 2, 2003, 12:11 AM
 
Nevermind, synotic and I worked on it today and all's well in the IE camp.

Thanks for the help guys!

Mac Guru
     
Synotic
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 6, 2003, 08:50 PM
 
Originally posted by Simon Mundy:
There's still one thing CSS can't do properly - maximum widths (as opposed to fixed widths) on block level elements. This is one reason that I'm forced to still use tables for layout, dammit
What do you mean by this? Aren't block elements max width by default? What kind of layout are you trying to achieve exactly?
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Dec 9, 2003, 07:06 AM
 
Originally posted by Synotic:
What do you mean by this? Aren't block elements max width by default? What kind of layout are you trying to achieve exactly?
The CSS 2 spec for 'max-width' could mean that I could have a flexible-width layout, but have the length fixed at a certain width once it reached that value. For example, I could have a layout that fit inside an 800x600 browser, that expanded to fit inside a 1024 x 768, but fixed its width and then centred itself within the page if the page went wider.

Sounds cool and straightforward, but only Mozilla supports this method.
Computer thez nohhh...
     
Synotic
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Dec 9, 2003, 08:15 AM
 
Originally posted by Simon Mundy:
The CSS 2 spec for 'max-width' could mean that I could have a flexible-width layout, but have the length fixed at a certain width once it reached that value. For example, I could have a layout that fit inside an 800x600 browser, that expanded to fit inside a 1024 x 768, but fixed its width and then centred itself within the page if the page went wider.

Sounds cool and straightforward, but only Mozilla supports this method.
I'm familiar with it, but in that instance wouldn't it just be a luxury? I don't see how table layouts can accomplish a CSS property that isn't fully supported (although Safari supports it as well). I'm just confused, that's all
     
Simon Mundy
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Dec 10, 2003, 09:24 AM
 
Originally posted by Synotic:
I'm familiar with it, but in that instance wouldn't it just be a luxury? I don't see how table layouts can accomplish a CSS property that isn't fully supported (although Safari supports it as well). I'm just confused, that's all
OK... try this at home (with safety goggles on):-

(I'll ditch attributes and < > tags for brevity)

table width=100%

col
col width="800"
col

tr valign=top

td nbsp; /td
td bgcolor=red img src=whatever.gif width=600 /td
td nbsp /td

/tr

/table

Now what you'll notice is a cell (which effectively could hold your page layout) that shrinks down to 600 minimum in a smaller browser window, but expands no more than 800 pixels in a larger window.

Nice, huh? I discovered it by using the 'col' tags rather than explicity setting the widths of the td tags

Now if only this could be achieved with CSS 2 consistently....
Computer thez nohhh...
     
redJag
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Dec 10, 2003, 11:20 AM
 
Yes, the max-width property is so sexy. Even better, though, is min-width. Hopefully with SP2, IE for Windows will have better CSS support, including these two properties (ok yeah, who am I kidding..)
Travis Sanderson
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 08:20 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,