Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Div pag looks strange in IE7
Old 01-21-2009, 03:48 PM Div pag looks strange in IE7
Skilled Talker

Posts: 66
Trades: 0
Hello,

I'm sorry for posting a topic that probably gets discussed many times, but I can't quite figure out my issue...

I've made a page using divs, but for some reason, a black bar appears below one of my images in IE. It looks perfectly fine in Firefox though.

If someone here could quickly look at the page / code and let me know how to fix it, I will be greatly appreciative.

Thanks!

Edit: I haven't quite figured out the problem, but fixed the issue by just placing the image as a background in a different div. Thanks for the help though!

Last edited by Mikeface; 01-21-2009 at 05:11 PM..
Mikeface is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 04:33 PM Re: Div pag looks strange in IE7
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
usually cause by "white space" before and after the <img src=... > element.

butt the <img up to the preceding closing tag and butt the following open tag up to the >
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-21-2009, 05:11 PM Re: Div pag looks strange in IE7
Skilled Talker

Posts: 66
Trades: 0
Thanks Chris.
Mikeface is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 12:50 PM Re: Div pag looks strange in IE7
Skilled Talker

Posts: 66
Trades: 0
...OK back at it again, I've changed the layout of my site a little, and still have a wacky "whitespace" between two of my div tags. I've deleted any empty spaces beteeen <IMG> and <Div> tags, but still have my issue.

I found an unconventional way to fix it by extending my shadow to have a black background, but still want to figure out what's causing the issue so I can resolve it if I come across it in the future.

It probably wouldn't do much good by having you look at the url, because it looks correct when the original shadow background is now set to black, but here is my code:

</script>

<link href="ground_control.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('Images/images/images/GC_FinalMaster_MAIN_flatten_02_rollover.jpg','Imag es/images/images/GC_FinalMaster_MAIN_flatten_03_rollover.jpg','Imag es/images/images/GC_FinalMaster_MAIN_flatten_04_rollover.jpg')">
<div id="content">
<div id="header"><a href="groundcontrol.html"><img src="Images/images/images/GC_FinalMaster_MAIN_flatten_01.jpg" width="800" height="192" border="0" /></a></div>
<div id="graphics"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','Images/images/images/GC_FinalMaster_MAIN_flatten_02_rollover.jpg',1)">< img src="Images/images/images/GC_FinalMaster_MAIN_flatten_02.jpg" name="Image7" width="300" height="181" border="0" id="Image7"/></a><a href="firefly.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','Images/images/images/GC_FinalMaster_MAIN_flatten_03_rollover.jpg',1)">< img src="Images/images/images/GC_FinalMaster_MAIN_flatten_03.jpg" name="Image8" width="200" height="181" border="0" id="Image8"/></a><a href="scorpion.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','Images/images/images/GC_FinalMaster_MAIN_flatten_04_rollover.jpg',1)">< img src="Images/images/images/GC_FinalMaster_MAIN_flatten_04.jpg" name="Image5" width="300" height="181" border="0" id="Image5"/></a></div><div id="text">
<div id="innovation_rugged"><img src="Images/images/images/GC_FinalMaster_MAIN_flatten_06.jpg" width="466" height="67"/></div>
<div id="graph">
<p>For the best results, you need the best technology. ION land systems give you the power and performance to acquire seismic data in any environment, under any conditions. From the Arctic to the jungle, the desert to transitional zones, we’ve got you covered. Rugged, reliable, and efficient, our portfolio of land acquisition systems is built with your survey requirements and preferences in mind. Whether the job demands cabled or cableless systems, analog or digital sensors, we’ve got you covered. And now, after combining the strengths of ARAM and ION, we are able to back our systems with an unmatched commitment to customer service.</p>
<p><span class="style2">[+]</span> Learn more about our portfolio of land systems by clicking on the icons above. </p>
<div id="learn_more"></div>
</div>
</div>
<div id="ion_land"><img src="Images/images/images/GC_FinalMaster_MAIN_flatten_11.jpg" /></div>
</div>
</body>
</html>

and here's my CSS:

#content {
background-repeat: repeat;
width: 845px;
margin-right: auto;
margin-left: auto;
vertical-align: top;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
background-image: url(Images/GC_shadow_new.png);
padding: 0px;
height: 100%;
}
#learn_more {
float: right;
padding-bottom: 0px;
padding-top: 0px;
}

body {
background-color: #FBFBFB;
background-image: url(background_gradient_grey.jpg);
background-repeat: repeat-x;
margin-right: auto;
margin-left: auto;
}


#graphics {
padding: 0px;
width: 800px;
margin-right: auto;
margin-left: auto;
}
.style2 {color: #fcaf17}

#text {
background-color: #000000;
height: 305px;
width: 800px;
color: #FFFFFF;
padding: 0px;
margin-right: auto;
margin-left: auto;
}

#graph {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
width: 535px;
margin-right: auto;
margin-left: auto;
padding-right: 100px;
padding-left: 90px;
line-height: 2em;
height: 200px;
}
#ion_land {
width: 800px;
background-image: url(Images/images/images/ion_logo.jpg);
height: 100px;
padding: 0px;
margin-right: auto;
margin-left: auto;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000000;
}

#innovation_rugged {
padding-right: 20px;
padding-left: 130px;
padding-top: 0px;
padding-bottom: 0px;
}
#header {
margin-right: auto;
margin-left: auto;
width: 800px;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
border-top-style: solid;
border-top-color: #000000;
border-right-color: #E3E3DF;
border-bottom-color: #E3E3DF;
border-left-color: #E3E3DF;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-image: url(Images/images/images/GC_FinalMaster_MAIN_flatten_01.jpg);
height: 192px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
}
Mikeface is offline
Reply With Quote
View Public Profile
 
Old 01-22-2009, 02:45 PM Re: Div pag looks strange in IE7
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You really shouldn't be using images inside of divs for navigation - better to use an unordered LIST ('cause that's what a menu is) and then use REAL text with images set only as background images.

Still would prefer to see the URL.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 10:27 AM Re: Div pag looks strange in IE7
Skilled Talker

Posts: 66
Trades: 0
Well, the reason I used images instead of text was because I am afraid that the fonts I used in the design will not show up well in other peoples browsers. My site is very simple with only three pages, and is more of a landing site than anything.

I know it's not a very good practice, but it seemed to be very functional for what I am trying to do. I am open to suggestions though.



If you could please look into why I have a few areas of "whitespace," I would greatly appreciate it.

I also am open to any other suggestions. Thanks a lot!

-Mike

Last edited by Mikeface; 01-23-2009 at 06:24 PM..
Mikeface is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 02:57 PM Re: Div pag looks strange in IE7
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I don't know, they look pretty much the same in FF and IE7 here.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 05:00 PM Re: Div pag looks strange in IE7
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Looks pretty crap in IE6, but that's the .png alpha transparency on the shadow borders.

No gaps though.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-23-2009, 06:24 PM Re: Div pag looks strange in IE7
Skilled Talker

Posts: 66
Trades: 0
OK, thanks for viewing, I'm not sure why I was seeing gaps before, I didn't change the code at all. Oh well, thanks for looking into it both of you!
Mikeface is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Div pag looks strange in IE7
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60546 seconds with 12 queries