Browser css problem

This is a discussion on "Browser css problem" within the Web Page Design section. This forum, and the thread "Browser css problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 15th, 2006, 16:07
saltedm8's Avatar
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,435
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Browser css problem

this image is IE 7 beta, could someone tell me how i can sort it please

http://www.recipebite.co.uk/menu.jpg

my website - http://www.recipebite.co.uk/_/

thank you
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote

  #2 (permalink)  
Old Aug 15th, 2006, 22:10
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browser css problem

It looks like it might be a padding bug in IE. I don't know how refined the browser is, but IE has always had trouble with the CSS box model. Try changing the class below to this:

Code: Select all
a.mainlevel:link, a.mainlevel:visited {
	height: 20px;
	padding: 0 0 0 20px;
	color: #544435;
	font-size: 300 15px/25px Comic Sans MS;
	text-align: left;
	text-decoration: none;
	background: #ffb672 url("../images/menu_bg.png") no-repeat 0 0;
	display: block;
}
Heh, sorry for reogranizing it. I have a rather strict placement of classes so I can find them in a snap. I'm not sure if it'll work, but it's worth a try.
Reply With Quote
  #3 (permalink)  
Old Aug 16th, 2006, 13:01
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,946
Blog Entries: 1
Thanks: 0
Thanked 29 Times in 29 Posts
Re: Browser css problem

For starters try replacing

font-size: 300 15px/25px Comic Sans MS; with

Code: Select all
 font-size: 0.9em;
font-family: Comic Sans MS;
although not sure whay comic sans would even be used but eh I'm just picky.

Also add a width:100%; which will fix and additional spacing under the LI's in IE and set the overflow of the links container to hidden;

Also

padding: 0 0 0 20px; may work better like padding:8px 0 8px 20px; With paddign etc you can eliminate the height as well so they will scale a bit more too.

Here is an example of a list similar to yours (Not 100% IE ready but gives you the idea).

Code: Select all
#blogposts {
    padding:0;
    margin:0;
    width:220px;
}

#blogposts li {
    list-style-type:none;
    text-indent:18px;
}

#blogposts li a {
    padding:8px 0 8px 0;
    display:block;
    font-weight:bold;
    color:#333333;
    background-color:#EFEFEF;
    text-decoration:none;
    margin:0 0 1px 0;
}

#blogposts li a:hover {
    background-color:#CCCCCC;
}
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 16th, 2006 at 13:07.
Reply With Quote
  #4 (permalink)  
Old Aug 16th, 2006, 21:45
saltedm8's Avatar
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,435
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Browser css problem

thanks for your replys, ile give it a shot ( p.s sorry for taking a while to reply, but i have been trying to design a new logo for here )

thank you
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 16th, 2006, 22:48
saltedm8's Avatar
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,435
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Browser css problem

sorted ( i think ) - thank you
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #6 (permalink)  
Old Aug 17th, 2006, 00:43
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browser css problem

My way, using the CSS font shorthand does the exact same thing as yours only it's in another measurement... Just thought I'd put that out there. Don't use padding to center text in a fixed height box!!! The "13px/25px" means a 13px font with a 25px line height. The text will be vertically dead center of the 25 pixels. It's cleaner code and breaks less than padding will.
Reply With Quote
  #7 (permalink)  
Old Aug 17th, 2006, 09:24
saltedm8's Avatar
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,435
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Browser css problem

problem is - it does this to the menu http://www.recipebite.co.uk/menu.jpg ( i did try it )

thanks anyway
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Aug 17th, 2006 at 09:28.
Reply With Quote
  #8 (permalink)  
Old Aug 17th, 2006, 10:54
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browser css problem

Oh god, please tell me IE 7 will support standard line-height like every other version of IE when it's finally released.

*pleading on bended knee
Reply With Quote
  #9 (permalink)  
Old Aug 17th, 2006, 13:04
saltedm8's Avatar
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,435
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Browser css problem

i really dont know

ask them ( i thorght it was released ?? )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
Reply

Tags
browser, css, problem

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-browser text problem LarsUnit Web Page Design 5 Oct 8th, 2007 15:19
IE Browser Creates Problem sakibonline Web Page Design 1 Aug 8th, 2007 12:57
IE6 Problem...stupid browser 1840dsgn Web Page Design 3 Jul 12th, 2007 09:48
CSS browser/menu problem - help required BISH™ Web Page Design 2 Jan 24th, 2006 11:27
HTML/Browser Problem Rconsole Web Page Design 6 Dec 20th, 2005 23:35


All times are GMT. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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