Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post

    Question Firefox - Background repeat problem

    Problem page is here. View in IE7 & FF.

    1st Problem:
    I am designing a page where 3 divs r under each other. Everything looks fine in IE7 but when I view the page in FF, backgrounds are repeating everywhere. Please guide me how can I set the backgrounds in FF?

    2nd Problem:
    You can see blue button menu. Text is aligned to top. I used line-height but no use. Please guide how can I align the text to middle of the button?

    Best Regards
    Uzair

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    2nd Problem:
    You can see blue button menu. Text is aligned to top. I used line-height but no use. Please guide how can I align the text to middle of the button?
    Quote Originally Posted by firebug
    #DVcpMENU ul li a {style.css (line 94)
    color:#FFFFFF;
    display:block;
    font-family:Verdana,Arial,Helvetica,sans-serif;
    font-size:12px;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:bold;
    height:42px;
    line-height:normal;
    text-decoration:none;
    width:140px;
    }
    should be
    Code:
    #DVcpMENU ul li a {style.css (line 94)
    color:#FFFFFF;
    display:block;
    font-family:Verdana,Arial,Helvetica,sans-serif;
    font-size:12px;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:bold;
    height:42px;
    line-height:42px;
    text-decoration:none;
    width:140px;
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post
    I already have given the line-height, below is the code I am using...

    Code:
    #DVcpMENU UL LI A {
    	display: block;
    	width: 140px;
    	height: 42px;
    	line-height: 42px;
    	font: bold 12px Verdana, Arial, Helvetica, sans-serif;
    	color: #fff;
    	text-decoration: none;
    }
    But its not working

  • #4
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//Dth XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dth/xhtml1-transitional.dth">
    It should be:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    This will fix your background repeating in FF

    For your second problem, try changing your CSS to:
    Code:
    #DVcpMENU ul li a{
    	display: block;
    	border:1px solid red;
    	width: 140px;
    	padding-top:10px;
    	height: 32px;
    	line-height: 42px;
    	font: bold 12px Verdana, Arial, Helvetica, sans-serif;
    	color: #fff;
    	text-decoration: none;
    }
    See if it helps
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    1st Problem:
    I am designing a page where 3 divs r under each other. Everything looks fine in IE7 but when I view the page in FF, backgrounds are repeating everywhere. Please guide me how can I set the backgrounds in FF?
    Code:
    div#DVwrap div.DVtopbtm img{
    display:block;
    }
    Or apply some class those top/bottom curved <img>s and simply apply a CSS like
    Code:
    img.curve{
    display:block;
    }
    Code:
    <img width="816" height="25" border="0" class="curve" src="images/pgbtm.gif"/>
    See Images, Tables, and Mysterious Gaps
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post
    Thank you, it worked

    But the 1st problem....
    Blue button Menu is still showing background on back in FF. How to fix that?

    regards

  • #7
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    have you missed rangana's post, you have many errors in this document, all are due to that error in DOCTYPE, see http://validator.w3.org/check?uri=ht...Inline&group=0
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #8
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post
    I have fixed that DTD problem in my DOCTYPE but the problem is still there. Please help!

  • #9
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Quote Originally Posted by Uzair View Post
    I have fixed that DTD problem in my DOCTYPE but the problem is still there. Please help!
    Please update it on the server so that let's check it again.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #10
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post
    Now please check the page, menu is still showing the background...

    http://www.dinnerandamurder.com/part.../party_cp.html

  • #11
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    See if adding the higlighted helps:
    Code:
    <div id="DVcpMENU">
    	<ul>
    		<li><a href="#">dfsgf</a></li>
    	</ul>
    </div>
    <div style="clear:both;"></div>
    For further reading:
    http://www.positioniseverything.net/easyclearing.html
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #12
    Regular Coder
    Join Date
    Aug 2005
    Posts
    365
    Thanks
    7
    Thanked 1 Time in 1 Post
    Thank you very much sir, it worked

  • #13
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    How about
    Code:
    #DVwrapCP {
    	.........
    	clear:both;
    }
    ?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •