Current location: Hot Scripts Forums » General Web Coding » CSS » Cross-browser CSS Help


Cross-browser CSS Help

Reply
  #1 (permalink)  
Old 04-29-05, 03:35 AM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Cross-browser CSS Help

Ok, first of all I hate Explorer! If it weren't for the unstable popup blocker and inabilities in properly rendering my CSS, it might be an ok browser.

Anyways, if anybody could take a look at my CSS on http://www.sloaner.net (just use firefox to view my css) and find the Explorer problems that would be really great. If you copy the CSS code into Dreamweaver (for error checking and the nice colored code) it should show a few Explorer issues. I just don't know how to fix them, I have tried almost everything, any help would be appreciated.

Regards,
Arctic.
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-29-05, 03:58 AM
alabaster_lynch alabaster_lynch is offline
Wannabe Coder
 
Join Date: Mar 2005
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
The only thing that dreamweaver is flagging is the max-width...it says that it is unsupported in ie 5.5 and ie 6.0...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-29-05, 04:04 AM
alabaster_lynch alabaster_lynch is offline
Wannabe Coder
 
Join Date: Mar 2005
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
here is a site that may help you "hack" your IE code...

http://www.svendtofte.com/code/max_width_in_ie/

hope this helps.........Jose
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 04-29-05, 10:27 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Why not just use width instead of max-width?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 04-29-05, 03:44 PM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
"width" css code

Well, I used max-width for one reason. In Mozilla Firefox, on my contact page, when I push and hold the Submit or Reset button for the form, the box that surrounds my content expands somehow. It was really weird. I am in a program at BCIT (univ. in BC, canada) and I asked my teacher that knows CSS, PHP, XHTML, etc...and it was a bug he had never seen, so I was playing with my code and max-width seems to help fix that problem. My CSS all along didn't display in Explorer thats why I left the max-width in, because I don't think it will really cause a problem in Explorer.
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 04-29-05, 04:12 PM
alabaster_lynch alabaster_lynch is offline
Wannabe Coder
 
Join Date: Mar 2005
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
yeah, it won't make a difference in ie...it was the only thing that dreamweaver flagged....jose
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 04-29-05, 04:42 PM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
You can serve standards compliant browsers max-width, and serve IE just plain width by utilizing an IE CSS selector parsing bug. Your declaration would look like this:

Code:
/* this gets served to all browsers */
.box-latest {
	width: 796px;
	width:expression(document.body.clientWidth > 784? "784px": "auto" );
	margin: 0 2px 0 0;
	padding: 0 12px 0 0;
	background: #BAC4D4 url('site_images/borders.gif') 100% 0 repeat-y;
}

/* IE doesn't understand this selector and ignores the declaration, only served to non-IE browsers. We reset the width to be automatically defined, and set the max-width instead */
.container > .box-latest {width:auto; max-width:796px;}
That should work fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 04-29-05, 08:18 PM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Thanks for showing me how, but I already did it by using that CSS max-width for IE site posted above HEH

Thanks anyways.
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 04-30-05, 03:00 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
You're welcome. If you're worried about your CSS validating, the proprietary IE solution will not validate against W3C standards. But it will still work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 12-26-06, 11:10 AM
Alan+61415484049 Alan+61415484049 is offline
Newbie Coder
 
Join Date: Dec 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Master of the Internet or Office Janitor?

Quote:
Originally Posted by kjmatthews
...the proprietary IE solution will not validate against W3C standards. But it will still work.
Meanwhile, over in #FF0000Mond, the Master of the Internet (This is his day job. He moonlights as a Window Gleaner) is outFoxed yet again by a humble surfer - Worka Round - who hides from his adversary in the Cascade of Specifity, taught to him by his ancestor, the Creator, SQML!

Apparently, the master has changed his own rule (born '97) about not following the specs. with the latest blue circle browser enslaving web authors into re-writing thousands of domains, yet still having to call upon our hero, Worka Round!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOM [ Document Object Model ] - Cross Browser Mark_SC.SE JavaScript 3 02-26-06 03:56 PM
Cross browser functionality (ASP/HTML) OzzyRocks ASP 1 04-22-05 04:18 PM
Determining browser for different css files Stom ASP 2 03-22-05 08:22 PM
Adapting CSS for different platforms pagetta CSS 1 01-12-05 08:13 AM
What can I use to update excel sheet on the fly using a browser? mysticwar PHP 1 06-17-03 02:23 AM


All times are GMT -5. The time now is 10:22 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.