Browsers

This is a discussion on "Browsers" within the Web Page Design section. This forum, and the thread "Browsers 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 Jun 2nd, 2007, 15:22
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Browsers

Hi!

Can you guys tell me why my page looks different in IE and in Firefox?

Here is the Url :http://vinotrade.co.uk/bjd/index.html

Thank you!
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 Jun 2nd, 2007, 15:35
Reputable Member
Join Date: Apr 2007
Location: Ireland
Age: 15
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

It looks the same in Firefox and IE 7. Theres a screen shot below.

It looks fine in IE 6 for me, however
Attached Images
File Type: jpg screen.jpg (63.0 KB, 26 views)

Last edited by Pádraig; Jun 2nd, 2007 at 15:52.
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 Jun 2nd, 2007, 16:04
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Yes, thats the problem. It looks ok in IE6 but it doesnt look the same in 7 and in Firefox. Why?
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 Jun 2nd, 2007, 16:19
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Change your absolute positioning of the content class to something like this.
Code: Select all
.content{
    position:relative;
    left:250px;
    top:-200px;
    width:500px;
    min-height:400px;
    line-height:1.4;
    font-family:Arial, Helvetica, sans-serif;
    color:#666666;
    font-size:14px;    
    
}
I'm not great with relative positioning, and I think that .content class is really tall but that might get you over the hump.
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 Jun 4th, 2007, 19:48
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

How can i make the background expand as the content grow? and how the menu background will follow 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
  #6  
Old Jun 7th, 2007, 18:18
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

How am i gonna make the navbar follow the rest of 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
  #7  
Old Jun 12th, 2007, 15:15
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Browsers

Looks like you just need a clearing div right before you close your containing div.

Code: Select all
.clearing {
height:0;
margin:0 0 -1px 0;
clear:both;
overflow:hidden;
}
then in your html
Code: Select all
<div class="clearing">&nbsp;</div>
That should keep the background below all the floated elements.

the css declaration will handle all browsers in particular IE trying to give the clearing div some height. Enjoy!

As for the background; you want to place the background on your containing div and have it repeat on the y axis.

Code: Select all
#container {
width: 600px;
margin:0 auto;
text-align:left;
background: #FFF url(../images/foo.jpg) left top repeat-y;
}
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Jun 12th, 2007 at 15:18.
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 Jun 12th, 2007, 18:17
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Thank you Mojoo. I tried it but it doesnt work. it is still the same.

I did try to do some other stuff, this is what i got so far http://vinotrade.co.uk/bjd/bjdtest.html

It is working ok in IE7 and Firefox, but NOT in IE6(grrrrrrrr)

Last edited by chubbs; Jun 12th, 2007 at 18:23.
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 Jun 12th, 2007, 18:36
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

i got it working, thank you! How can i do that , when i insert bigger content, than the whole navbar and the container will expand?
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 Jun 12th, 2007, 18:38
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Put your shaded background (background3.png) as a background to html

Code: Select all
html {
    background: #fff url(http://vinotrade.co.uk/bjd/images/background3.png) repeat-x 0 0;
    font: 14px Tahoma, Geneva, sans-serif;
    color:    #000;
}
And use the Faux Column technique and apply your content background to body
Code: Select all
body {
    background: url(../i/body-bg.jpg) repeat-y center top;
    margin: 0 auto;
    width: 755px;
}
Attached Images
File Type: jpg body-bg.jpg (413 Bytes, 11 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
  #11  
Old Jun 12th, 2007, 18:59
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Thank You Karinne!, Should i still need to use the code from mojoo?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jun 12th, 2007, 19:06
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Well ... you're not using floats, which you should ... they are much more easier to deal with then absolute position IMO. Then just apply overflow: hidden to .main
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jun 12th, 2007, 19:12
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

what floats are..... sorry but i am still learning
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Jun 12th, 2007, 19:14
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

see http://www.newguyinennis.com/samples...t_left_column/

float
Quote:
This property specifies whether a box should float to the left, right, or not at all. It may be set for any element, but only applies to elements that generate boxes that are not absolutely positioned.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Jun 12th, 2007, 19:27
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Oh yes i have read about this, Thank you!
Thank you guys for the big help from all af you!
Can you please just check the final result? http://www.vinotrade.co.uk/bjd/index.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Jun 13th, 2007, 12:32
New Member
Join Date: Jun 2007
Location: UK
Age: 25
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

also make sure you set text sizing for everything etc as pcs and macs display text different and you may find your site jumping in a mac etc.

also image padding is different on macs and on sefari.

if you google resetting brouser default css you will find loads of information and code just to copy and paste into your 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
  #17  
Old Jun 14th, 2007, 13:50
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Hi! for me, the final result looks GHASTLY in Firefox 2.0 and IE 7!

Here's a screenshot (I highlighted the text so you could see it):



That text is nasty!

you need to work on the 2 columns!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Jun 14th, 2007, 13:55
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

It's a bad idea to set the text in an absolute position. you probably have a bigger screen than me: make your browser window smaller, and you'll see what I mean!!! I did mess with your code a bit, and see your problem. I wouldn't have coded it the way you did, but everyone's different!

Last edited by fuzzee; Jun 14th, 2007 at 13:58.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old Jun 14th, 2007, 14:22
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: Browsers

In your case you certainly don't need any type of "positioning" on your content, what you need is a standard two column layout which if structured correctly will hold your content where it needs to be without using relative or absolute positioning.

1. Restructure your layout, in this case I would suggest starting from scratch.

2. Apply your background to your containing div and repeat it on the y axis.

If you need any more help getting it done just let us know.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Jun 14th, 2007 at 14:27.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
Old Jun 14th, 2007, 15:32
Reputable Member
Join Date: Sep 2006
Location: Rothwell
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Browsers

Thank you guys! I will try to fix those thing, but my time is realy short. I will try it def!
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