Cross Browser

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 21st, 2005, 08:07
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Cross Browser

Hi, I have developed a page using firefox. It looks different in IE, there are spacings between elements.

Anyone know how to get rid of them? (See screenshots)
Attached Images
File Type: jpg IE_shot.jpg (29.8 KB, 37 views)
File Type: jpg firefox_shot.jpg (26.8 KB, 40 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 21st, 2005, 09:41
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

Show us the code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 21st, 2005, 10:01
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

This is my code:

Code: Select all
 <body>
<div id="container">
<div id="top">
<img src="img/index_01.jpg" />
</div>

<img src="img/topNav.gif" />
<div id="navigate">
<a href="#">SERVICES</a> | <a href="#">OUR APPROACH</a> | <a href="#">INDUSTRY RESOURCES</a> | <a href="#">CAREERS</a> | <a href="#">CONTACT US</a>
</div>
<img src="img/bottomNav.gif" />

<div id="title">
<img src="img/index_17.jpg" />
</div>

<div id="leftcontent">
<img src="img/topEdge.jpg" /><p class="floatLeft"><a class="secondaryNav" href="#">COST MANAGEMENT</a><br><img class="floatLeft" src="img/dots.gif" />
<a class="secondaryNav" href="#">BUSINESS PROCESS ANALYSIS</a><br><img class="floatLeft" src="img/dots.gif" />
  <a class="secondaryNav" href="#">TECHNOLOGY SUPPORT</a></p>
<img class="floatRight" src="img/edgeImage2.jpg" />
<img class="floatLeft" src="img/working.jpg" /><img class="floatRight" src="img/Leftbracket.gif" /><span class="imgText floatLeft leftpadding">Fusce convallis tincidunt dui. Fusce convallis tincidunt dui. Fusce convallis tincidunt dui.</span><p class="blackbold floatLeft leftpadding">John Smith<br>Turner Construction Inc.</p>
<img src="img/turner.jpg" />
</div>

<div id="middlecontent">
<img class="floatRight" src="img/hardhat.jpg" /><p class="floatLeft sectionText maxWidth"><span class="biggerText">We work smart </span> to deliver success in the industrial contruction market. By combining strategic consulting with on-site implementation services, CSI rapidly identifies and targets quantifiable change for customers. We like to call this our SWAT approach.</p>
<p class="descriptText clear"><span class="graybold">Our project based, practical solutions deliver value in a short time. CSI offers:</span><br><br>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed pulvinar purus ut arcu. Morbi neque. Mauris elementum commodo risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam tristique neque quis felis. Donec cursus. Aliquam adipiscing ullamcorper nibh. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nec ligula. Maecenas in quam eget elit accumsan lobortis. Proin at quam.<br><br>
Pellentesque dignissim. Mauris id diam dictum purus condimentum bibendum. Mauris vitae augue. Curabitur nunc. Etiam quam. Pellentesque nec sapien. Mauris ut metus eget arcu faucibus adipiscing. Sed vel ante. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer ornare elementum urna.</p>
</div>

<div id="rightcontent">
<img src="img/index_08.jpg" /><img src="img/index_11.jpg" />
</div>

<div id="footer">
<a href="#"><img src="img/index_12.jpg" border="0" align="middle" /></a><span class="footerText">LEGAL &nbsp; | &nbsp; SITEMAP</span>
</div>
</div>

</body>

Last edited by benbramz; Dec 21st, 2005 at 13:55.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 21st, 2005, 10:04
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

Delete the spaces in your code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 21st, 2005, 13:47
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

Sypher is right... If that doesn't work let us know.

It is very crazy how spaces and breaks in code CAN sometimes translate into layout problems.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 21st, 2005, 13:52
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

yeah sounds like that should work
also, you [code] tags next time ive done it this time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 21st, 2005, 14:00
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

I think benbramz means: USE [code] tags next time. I was wondering why it looked a bit wierd.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 21st, 2005, 21:45
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

hey, getting rid of the spacing didnt work, here is my CSS (in code tag)
Code: Select all
/* CSS Document */


#container
{
width: 900px;
background-color: #fff;
padding: 0;
margin: 0;
}

#top
{
padding: 0;
background-color: #ddd;
}

#hometop
{
margin: 0;
padding: 0;
background-image:url(img/logo_repeat.gif);
background-repeat: repeat-x;
}

#top h1
{
padding: 0;
margin: 0;
}

#nav
{
padding: 0;
margin: 0;
}

#navigate
{
    background-image:url(img/background_repeat.jpg);
    background-repeat: repeat-x;
    padding-left:26px;
    padding-bottom:4px;
    padding-top:3px;
}
 
#navigate a
{
    font-weight:bolder;
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    text-decoration:none;
    color: #000000;
}
 
#navigate a:hover
{    
    color:#ffffff;
}


#title
{
padding: 0;
margin: 0;
}

#leftcontent
{
float: left;
width: 266px;
margin: 0;
padding: 0;
}

#leftcontent_home
{
float: left;
width: 361px;
margin: 0;
padding: 0;
}

#left_div1
{
background-image:url(img/top_right_short_bg.gif);
float: left;
width: 361px;
height:128px;
margin-left: 0;
}

#left_div2
{
background-image:url(img/news_bg1.gif);
clear:left;
float: left;
width: 206px;
height:31px;
margin: 0;
}

#left_div3
{
background-image:url(img/news_bg2.gif);
float: right;
width: 155px;
height:31px;
margin: 0;
padding: 0;
}

#left_div4
{
clear:left;
float: left;
width: 206px;
height:182px;
margin: 0;
padding: 0;
}

#left_div5
{
float: right;
width: 250px;
height:182px;
margin: 0;
padding: 0;
position:absolute; top: 389px; right: 560px;
z-index:5;
}

#middlecontent_home
{
background-image:url(img/home_strip1.gif);
background-repeat: repeat-x;
float: left;
width: 170px;
margin: 0;
padding: 0;
}

#rightcontent_home
{
background-image:url(img/right_side_bg.gif);
float:right;
width: 352px;
height: 341px;
margin: 0;
padding: 0;
}

#image_home
{
float: left;
margin: 0;
padding: 0;
width: 187px;
}

#rightcontent
{
float:right;
width: 158px;
margin: 0;
padding: 0;
}



#middlecontent
{
float: left;
width: 476px;
margin: 0;
padding: 0;
background:url(img/backcolour_1.jpg) no-repeat;
}



#footer
{
background-image:url(img/background_repeat3.gif);
background-repeat: repeat-x;
width:900px;
height:35px;
clear: both;
margin: 0;
padding: 0;
}

.menutext
{
font-family:Arial, Helvetica, sans-serif;
color:#990000;
}

.sectionText
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#999999;
padding-left:21px;
padding-top:6px;
}

.descriptText
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:#000000;
}

.graybold
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
color:#666666;
font-weight:bold;
}

.biggerText {
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color:#000000;
}

.imgText
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#666666;
max-width: 16em;
}

.blackbold
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color:#000000;
}

.ver_10_lgrey
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color:#CCCCCC;
}

.ver_10_grey
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color:#666666;
}

.ver_10_black
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color:#000000;
}

.ver_10_black_bold
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight:bold;
color:#000000;
}

.ver_10_bold_red
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight:bold;
color:#990033;
}

.bold_big_white
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight:bold;
font-size: 14px;
color:#FFFFFF;
}

.link_black a
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color:#000000;
}

.link_black a:hover
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color:#990033;
}

.footerText
{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
color:#000000;
padding-left:360px;
}

.footerText_home
{
float:left;
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
color:#000000;
padding-left:150px;
padding-top:1px;
}

.footerText_home a
{
color:#000000;
text-decoration:none;
}

.footerText_home a:hover
{
color:#000000;
text-decoration:underline;
}

.spanwidth
{
width: 100px;
}

.floatRight
{
float: right;
}

.floatLeft
{
float: left;
}

.maxWidth
{
max-width: 30em;
}

.currentPageLink
{
color:#999999;
}

.clear
{
clear:both;
}

.secondaryNav
{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:bold;
color:#990033;
padding-left:23px;
}

.secondaryNav a
{
text-decoration:none;
}

.secondaryNav a:hover
{
text-decoration:underline;
}


.maxwidth
{
max-width: 30em;
}

.leftpadding
{
padding-left: 25px;
}

.toppadding
{
padding-top: 10px;
}

.right_text_padding
{
padding-top: 31px;
max-width: 20em;
line-height: 12pt;
}

.textlayer
{
position:absolute; top: 358px; right: 622px;
z-index:4;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 21st, 2005, 22:03
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

Its coll, i got it, i needed

img {display:block;}

in my CSS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Dec 22nd, 2005, 14:37
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

Quote:
Originally Posted by DSMag
I think benbramz means: USE [code] tags next time. I was wondering why it looked a bit wierd.
yeah....haha notice i edited the post in question...

glad you got it sorted!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Dec 22nd, 2005, 14:38
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross Browser

glad you sorted it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
cross, browser

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 issues planescape Web Page Design 4 Aug 29th, 2007 21:16
Cross-Browser difficulties... Dapandyman Web Page Design 6 Dec 9th, 2006 20:53
HELP!!! Cross browser issue... hak Web Page Design 7 Dec 4th, 2006 11:40
Help! Cross Browser Issue centenial Web Page Design 1 Aug 8th, 2006 18:56
New Cross-Browser Low masonbarge JavaScript Forum 2 May 11th, 2006 17:18


All times are GMT. The time now is 06:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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