Results 1 to 5 of 5

Thread: Faux Background not working in IE and FF

  1. #1
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Faux Background not working in IE and FF

    Hi all,

    I am a newbie and somehow i have managed to create a webpage which I have posted at the following link:

    http://tutorials4u.uuuq.com/index-1.htm

    The CSS & Other files:
    http://tutorials4u.uuuq.com/styles.css
    http://tutorials4u.uuuq.com/menu.css
    http://tutorials4u.uuuq.com/csshover.htc

    The problem is that the background image is not displaying fully. Its a faux column. I have gone through couple of website for CSS basics....however, i was not able to rectify it.

    Please help.

    Thanks in advance.
    Shahid

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there shahidr100,

    and a warm welcome to these forums.

    Change this...
    Code:
    
    #faux
    {
    background-image: url(images/faux.jpg);
    background-repeat: repeat-x;
    width: 780px;
    margin: 0 Auto;
    position: relative;
    }
    
    ...to this...
    Code:
    [
    #faux {
        background-image:url(images/faux.jpg);
        width:780px;
        margin:0 auto;
     }
    #faux:after {
        content:'';
        display:block;
        clear:both;
     }
    
    Also note that all the position:relative attributes that you have in your stylesheet are totally unnecessary.

    coothead

  3. #3
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    As you may not know, CSS content property isn't supported by IE. Thus, I advise that shall not be used.

  4. #4
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default It works..

    Hello all,

    Thank you for all your help. The menu is coming perfectly and the padding is also been taken care of. However, on drop down, unnecessary side arrow is coming in all the items, whereas it should come only where it is required to come.

    The links to the main page and css files are given below for your information.

    http://tutorials4u.uuuq.com/ind.html
    http://tutorials4u.uuuq.com/css/menu.css
    http://tutorials4u.uuuq.com/css/style.css

    I have attached the files as well.

    Thank you in advance.

  5. #5
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Give this a try...

    Code:
    #menu ul li	a/* attaches side-arrow to all parents */
    	{
    	background-image: url(../images/nav_blue.gif);
    	background-position: right center;
    	background-repeat: no-repeat;
    	}
    
    #menu ul li	a.none/* attaches side-arrow to all parents */
    	{
    	back
    And then anywhere you don't want an arrow give it a class none like...

    Code:
      <li><h2>Networking</h2>
        <ul>
          <li><a href="#">RED</a>
    
            <ul>
              <li><a class="none" href="#">RED-1</a></li> <!--This will have no arrow-->
              <li><a href="#">RED-2</a></li>
              <li><a href="#">RED-3</a></li>
            </ul>
          </li>

Bookmarks

Posting Permissions

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