Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Bidding Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-18-2004, 12:44 PM   #1 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
CSS in IE grrrr

As a preface, yes, I know you could make a whole forum dedicated to my css problems, but hopefully the persistence might pay off.

As much as I love CSS, IE is being a bit of a prat with it.

I've got a div, and a load of images (linked) in it. In mozilla, firefox etc. there is no line break in between the images, but for some reason IE decides to do one.

The code is the following.

Code:
<div id="nav"> <a href="http://www.bluewebdesign.co.uk" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','images/roll_06.gif',1)"><img src="images/index_06.gif" alt="Home" name="Home" width="179" height="24" border="0" id="Home" /></a> <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('whatwedo','','images/roll_07.gif',1)"><img src="images/index_07.gif" alt="What we do" name="whatwedo" width="179" height="26" border="0" id="whatwedo" /></a> <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ourwork','','images/roll_08.gif',1)"><img src="images/index_08.gif" alt="Our work" name="ourwork" width="179" height="25" border="0" id="ourwork" /></a> <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','images/roll_09.gif',1)"><img src="images/index_09.gif" alt="Contact Us" name="contact" width="179" height="25" border="0" id="contact" /></a> <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Extras','','images/roll_10.gif',1)"><img src="images/index_10.gif" alt="Extras" name="Extras" width="179" height="24" border="0" id="Extras" /></a> </div>
and the css

Code:
#nav { height: 124px; position: absolute; width: 179px; top: 81px; right: 0px; } #nav a { margin: 0; padding: 0; } #nav img { margin: 0; padding: 0; }
Code highlighted in red is stuff I tried, but it didn't do much to help.

I can post the bit up if you need help or a screener to it, but I think what I've said is pretty much self-explanatory.

Cheers,

Ed
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-18-2004, 01:38 PM   #2 (permalink)
Inactive
 
Spiral's Avatar
 
Join Date: 07-06-04
Location: Detroit, MI
Posts: 594
iTrader: 0 / 0%
Latest Blog:
None

Spiral is liked by somebodySpiral is liked by somebodySpiral is liked by somebodySpiral is liked by somebody
Send a message via AIM to Spiral Send a message via MSN to Spiral
You could try adding vspace="0" and hspace="0" to the images.

Not really sure what would cause that.
Spiral is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-18-2004, 01:41 PM   #3 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Yeah, neither am I. Tried that, didn't work though. :S
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-18-2004, 01:56 PM   #4 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,935
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Remove the VbCrLf (line breaks in your code).

Code:
<div id="nav"> <a href="http://www.bluewebdesign.co.uk" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','images/roll_06.gif',1)"><img src="images/index_06.gif" alt="Home" name="Home" width="179" height="24" border="0" id="Home" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('whatwedo','','images/roll_07.gif',1)"><img src="images/index_07.gif" alt="What we do" name="whatwedo" width="179" height="26" border="0" id="whatwedo" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ourwork','','images/roll_08.gif',1)"><img src="images/index_08.gif" alt="Our work" name="ourwork" width="179" height="25" border="0" id="ourwork" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','images/roll_09.gif',1)"><img src="images/index_09.gif" alt="Contact Us" name="contact" width="179" height="25" border="0" id="contact" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Extras','','images/roll_10.gif',1)"><img src="images/index_10.gif" alt="Extras" name="Extras" width="179" height="24" border="0" id="Extras" /></a> </div>
imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-18-2004, 01:57 PM   #5 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Thanks for that, surely its pretty stupid that IE treats them as actual line breaks?
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-18-2004, 02:06 PM   #6 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Quote:
Originally Posted by edbarton
Thanks for that, surely its pretty stupid that IE treats them as actual line breaks?
There are a lot of stupid things that IE does.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-18-2004, 03:58 PM   #7 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
This is what happens when you have a browser that hasn't been updated for quite a while, and won't be updated for a few more years.

It sucks the monkeys nut.
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2004, 04:26 PM   #8 (permalink)
v7n Mentor
 
Sketch's Avatar
 
Join Date: 05-06-04
Location: London, UK
Posts: 1,452
iTrader: 0 / 0%
Latest Blog:
None

Sketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web pro
I think when I was trying to do a website with CSS in IE I had problems using the
Code:
#ID a
Instead of
Code:
a.ID
If that makes sence.

So maybe try

Code:
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('whatwedo','','images/roll_07.gif',1)" class="ID"><img src="images/index_07.gif" alt="What we do" name="whatwedo" width="179" height="26" border="0" id="whatwedo" /></a>
Code:
.nav { height: 124px; position: absolute; width: 179px; top: 81px; right: 0px; } a.nav { margin: 0; padding: 0; }
I don't know if that will help at all, but I had the same sort of problem and it fixed it (leave the #ID there because it will work for Mozila ect, yet IE doesn't like it)
Sketch is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



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

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


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:52 AM.
© Copyright 2008 V7 Inc