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
firefox deletes a bit of my template.
Old 02-16-2010, 09:19 AM Personal Project website - Help please?
Super Talker

Posts: 142
Name: William
Trades: 0
website: http://uuilliam.net/personalp/

How it should look:



Problem 1:

it appears correct in Internet explorer but in all other browsers, the bottom bit of the logo is cut off
[SOLVED]

Problem number 2: (updated first post with new details)

When I resize my browser, It mis-aligns some of my buttons most likely cause I am using % instead of absolute pixels, but I need it in % to work correctly.

Problem number 3: how would I add a border but hide the top bit of the border? as it overlaps my navigator, I wouldn't mind if it went under.
code:

CSS
HTML Code:
#navigation {
    background:none;
    margin:0 auto;
}
#nav {
    background:url(images/nav_repeat_x.png) #333333 repeat-x;
    width:100%;
    height:50px;
}
.links {
    background:none;
    margin:0px 0px 0px 60%;
    height:50px;
}
#home{
    float:left; 
    width: 41px; 
    height:    50px; 
    margin: 0px 0px 0px 25px;
    background: url(images/home.png) no-repeat 0 0;
}
#home:hover{
    background:url(images/home_rollover.png) no-repeat 0 0;
}
#home span{
    display: none;
}
#about{
    float:left;
    width: 42px; 
    height:    50px;
    margin: 0px 0px 0px 25px;
    background: url(images/about.png) no-repeat 0 0;
}
#about:hover{
    background:url(images/about_rollover.png) no-repeat 0 0;
}
#about span{
    display: none;
}
#portfolio{
    float:left; 
    width: 59px; 
    height:    50px; 
    margin: 0px 0px 0px 25px;
    background: url(images/portfolio.png) no-repeat 0 0;
}
#portfolio:hover{
    background:url(images/portfolio_rollover.png) no-repeat 0 0;
}
#portfolio span{
    display: none;
}
#contact{
    float:left; 
    width: 53px; 
    height:    50px; 
    margin: 0px 0px 0px 25px;
    background: url(images/contact.png) no-repeat 0 0;
}
#contact:hover{
    background:url(images/contact_rollover.png) no-repeat 0 0;
}
#contact span{
    display: none;
}
#comment{
    float:left; 
    width: 67px; 
    height:    50px; 
    margin: 0px 0px 0px 25px;
    background: url(images/comment.png) no-repeat 0 0;
}
#comment:hover{
    background:url(images/comment_rollover.png) no-repeat 0 0;
}
#comment span{
    display: none;
}
.overlay {
    background:none;
    margin:-50px 0px 0px 10%;
    width:150px;
    height:150px;
    float:left;
    overflow:visible;
}
#top {
    background:url(images/overlap.png) no-repeat;
    width:150px;
    height:11px;
}
#left {
    background:url(images/overlap_1.png) no-repeat;
    width:8px;
    height:122px;
    margin:0px auto;
    float:left;
}
#logo {
    background:url(images/logo_134_122.png) no-repeat;
    width:134px;
    height:122px;
    margin:0px auto;
    float:left;
}
#logo span {
    display:none;
}

#right {
    background:url(images/overlap_2.png) no-repeat;
    width:8px;
    height:122px;
    margin:0px auto;
    float:right;
}
#bottom {
    background:url(images/overlap_3.png) no-repeat;
    width:150px;
    height:17px;
    margin:0px 0px 0px 0px;
    float:left;
}
#wrapper {
    background:none center;
    width:75%;
    margin:-2px auto;
    padding:50px;
}
HTML / PHP:

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html>
<
head>
<
title>Photolio Photography Portfolio</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
link href="style.css" rel="stylesheet" type="text/css">
</
head>
<
body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<
div id="navigation">

<
div id="nav">
<
div class="links">
<
a id="home" href="index.php" title="home"><span>Home</span></a>
<
a id="about" href="about.php" title="about"><span>About</span></a>
<
a id="portfolio" href="folio.php" title="portfolio"><span>Portfolio</span></a>
<
a id="contact" href="contact.php" title="contact"><span>Contact</span></a>
<
a id="comment" href="comment.php" title="comment"><span>Comment</span></a>
</
div>
</
div>

<
div class="overlay">
<
div id="top"></div>
<
div id="left"></div>
<
div id="logo"><a id="logo" href="index.html" title="logo"><span>logo</span></a><br /></div>
<
div id="right"></div>
<
div id="bottom"></div>
</
div>

</
div>

</
div>
<!--
this is the content area starting from here-->
<
div id="wrapper"
since I am coding in php, this is the "header.php" file

that is why I dont close the wrapper or html file.

Last edited by UUilliam; 02-17-2010 at 06:25 PM..
UUilliam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-16-2010, 02:44 PM Re: firefox deletes a bit of my template.
whhelpguy's Avatar
Average Talker

Posts: 19
Name: Blue
Location: Los Angeles
Trades: 0
Try this one out...

#bottom { background:url(images/overlap_3.png) no-repeat; width:150px; height:17px; margin:0px 0px 0px 0px; float:left; }
whhelpguy is offline
Reply With Quote
View Public Profile Visit whhelpguy's homepage!
 
Old 02-16-2010, 02:51 PM Re: firefox deletes a bit of my template.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Firefox isn't deleting it. The rounded bottom part of your box is BEHIND the logo, give it a top margin of 122px and it will 'reappear'
__________________
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 02-16-2010, 02:52 PM Re: firefox deletes a bit of my template.
Super Talker

Posts: 142
Name: William
Trades: 0
It would appear that this was the fix I was looking for
(the float:left

I did have that in to start with but then the compatibility between ie n firefox caused me to remove it to see if it would work, I obviously forgot to try adding it back in

thankyou for the fix
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 02-16-2010, 04:28 PM Re: firefox deletes a bit of my template.
whhelpguy's Avatar
Average Talker

Posts: 19
Name: Blue
Location: Los Angeles
Trades: 0
Glad it worked for you, UUilliam.
whhelpguy is offline
Reply With Quote
View Public Profile Visit whhelpguy's homepage!
 
Old 02-16-2010, 04:39 PM Re: firefox deletes a bit of my template.
Super Talker

Posts: 142
Name: William
Trades: 0
Problem number 2: (updated first post with new details)

When I resize my browser, It mis-aligns some of my buttons most likely cause I am using % instead of absolute pixels, but I need it in % to work correctly.

problem number 3: how would I add a border but hide the top bit of the border? as it overlaps my navigator, I wouldn't mind if it went under.
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 02-17-2010, 06:26 PM Re: firefox deletes a bit of my template.
Super Talker

Posts: 142
Name: William
Trades: 0
What does Clearing floats do anyway? I cleared my floats and everything is the exact same
UUilliam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to firefox deletes a bit of my template.
 

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