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.

CSS Forum


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



Reply
Displaying Problems in IE and FF
Old 03-14-2009, 08:45 AM Displaying Problems in IE and FF
Experienced Talker

Posts: 32
Trades: 0
I have problems with an APDIV and my footer on this website:
http://www.tangifter.co.uk/bartek

On different resolutions and on zooming in or out, the ApDiv seems to slide about and the footer slides up or down. They have slightly different effects in all browsers.

I am a beginner, so please help me out on this one.
Here is the css: Were are looking at #apDiv1

<!--
body {
background-image:url(Images/bg.png);
background-repeat:repeat;
margin-top: 0px;
margin-bottom: 0px;
}
-->

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
outline: 0;
font-size: 100%;
vertical-align: text-top;
}
.content
{ background-color:#FB9A14;
width: 975px;
height: 900px;
margin-left: auto;
margin-right: auto;
margin-top:0px;
margin-bottom:0px;
}
.banner
{
width: 975px;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
}
.menu
{
width:206px;
height:400px;
margin-left:0px;
}
.footer
{
width:975px;
height;
position:relative;
left;
top:-285px;
}
#apDiv1 {
position:absolute;
width:670px;
height:395px;
z-index:1;
left: 400px;
top: 302px;
float:none;
}
.style1 {
font-size: xx-large;
font-weight: bold;
}

PLEASE HELP!!! I am running out of time on this project!
bartoszwozniak is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-14-2009, 08:49 AM Re: Displaying Problems in IE and FF
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
copied from here
absolute positioning! just don't use it unless you really have to, and you really understand what it does.

get rid of the absolute positioning and start learning to use the document flow.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-14-2009, 08:53 AM Re: Displaying Problems in IE and FF
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
2nd bit of advice is do NOT use spaces in filenames, it will cause you problems at some point.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-14-2009, 05:18 PM Re: Displaying Problems in IE and FF
Experienced Talker

Posts: 32
Trades: 0
Hi mate, so could you tell me how to do it, cuz really i am only starting.
bartoszwozniak is offline
Reply With Quote
View Public Profile
 
Old 03-14-2009, 09:04 PM Re: Displaying Problems in IE and FF
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Absolute positioning causes the object it is applied to to float outside the container, and retain the same position whether the browser window is resized or not. So the reason you're encountering this problem is because of that. So, in short, replace your style with this:
Code:
<!--
body {
    background-image:url(http://www.tangifter.co.uk/bartek/Images/bg.png);
    background-repeat:repeat;
    margin-top: 0px;
    margin-bottom: 0px;
}
-->

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: text-top;
}
.content
{    background-color:#FB9A14;
    width: 975px;
    height: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top:0px;
    margin-bottom:0px;
}
.banner
{
    width: 975px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
}
.menu
{
        float: left;
    width:206px;
    height:400px;
    margin-left:0px;

}

#apDiv1 {
        float: right;
    width:670px;
    height:395px;
        padding-right: 90px;
        padding-top: 15px;
        padding-bottom: 100px;
}
.style1 {
    font-size: xx-large;
    font-weight: bold;
}
Oh, and make you buttons CSS rollovers instead of JavaScript. It will be smoother, and compatible with more browsers.
And like Chris said, don't use spaces in your file names or directories. It'll save you a ton of work.

http://www.alistapart.com/stories/rollovers/

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }

Last edited by stevej; 03-14-2009 at 09:06 PM..
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-15-2009, 06:57 AM Re: Displaying Problems in IE and FF
Experienced Talker

Posts: 32
Trades: 0
Thanks a lot guys for your help. LIFE SAVERS !!! But what about the footer? Have you noticed how it slides off the page??

Last edited by bartoszwozniak; 03-15-2009 at 07:00 AM..
bartoszwozniak is offline
Reply With Quote
View Public Profile
 
Old 03-15-2009, 11:20 AM Re: Displaying Problems in IE and FF
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Your footer is just an image and it's stuck inside the menu div, which isn't the right place for it. Put it in as a background to a div that follows #content, get rid of the absolute positioning, you don't need it, and the normal document flow should put the footer at the bottom where you want it.
__________________
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 03-15-2009, 02:14 PM Re: Displaying Problems in IE and FF
Experienced Talker

Posts: 32
Trades: 0
Hey, the footer is in the content div, not the menu div, but anywayz i fixed it now.

Thanks a lot everyone, I have learnt something new, I could never use floats, but now I can. Really a big thank you to all that helped.
bartoszwozniak is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Displaying Problems in IE and FF
 

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.27565 seconds with 12 queries