help floating an element!

Discussion in 'CSS' started by co.ador, Sep 16, 2009.

  1. #1
    #rc1 ul li {
    width:190px;
    float::left;
    margin:4px;
    border:1px solid green;

    }

    As you can see above in the css sample I have floated #rc1 ul li to the left but then in the browser is not floating to the left. all other elements are being applied less the floating .......... uch...

    html code

    
    <div id="rmc">
    
    <div id="rc1">
    <ul id="rc1ul" >
    <li><a href="#">about mansions</a></li>
    <li><a href="#">Materials</a></li>
    <li><a href="#">Soil of place</a></li>
    <li><a href="#">Engineers </a></li>
    </ul><!-- end rc1ul -->
    <div id="videoplayer"> 
    <img src="images/videoplayer.jpg" alt="videoplayer">
    <p>Lorem Ipsum is simply dummy text 
    of the printing and typesetting 
    industry. Lorem Ipsum has been 
    the industry's standard dummy
     text ever since the 1500s, when
     an unknown printer took a galley.</p>
    </div><!-- end videoplayer-->
    </div> <!-- end rcl -->
    
    <div id="rc2">
    <img src="../images/line..gif" alt="line">
    <ul id="smallthumbul" >
    <li><a href="#"><img src="images/construction1.jpg" alt="1"></a></li>
    <li><a href="#"><img src="images/construction2.jpg" alt="1"></a></li>
    <li><a href="#"><img src="images/construction3.jpg" alt="1"></a></li>
    <li><a href="#"><img src="images/construction4.jpg" alt="1"></a></li>
    <li><a href="#"><img src="images/construction5.jpg" alt="1"></a></li>
    </ul><!-- end smallthumbsul -->
    
    <div id="largethumbs"> 
    <img src="images/construction5.jpg" alt="large">
    </div>
    
    </div><!-- end rc2 --> 
    </div><!-- end rmc-->
    HTML:
    Css stylesheet

     
    co.ador, Sep 16, 2009 IP
  2. titanium1357

    titanium1357 Peon

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check it out this one :
    float::left;
    HTML:
    You have a syntax error .
    It should be :
    float:left;
    HTML:
    Best regard.
     
    titanium1357, Sep 16, 2009 IP
  3. co.ador

    co.ador Peon

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you titanium it was a syntax error.
     
    co.ador, Sep 16, 2009 IP
  4. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #4
    I recommend you switch to an editor with syntax highlight function, such as Notepad++, PNotepad, EditPlus, or other similar tools.
     
    myst_dg, Sep 18, 2009 IP
  5. co.ador

    co.ador Peon

    Messages:
    120
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you myst
     
    co.ador, Sep 18, 2009 IP
  6. Kayarc

    Kayarc Peon

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Notepad++ is great for syntax highlighting.. you will see your errors drastically reduced
     
    Kayarc, Sep 25, 2009 IP