Style Sheets
  Home arrow Style Sheets arrow Page 3 - Combining Floating Lists with Other Web Pa...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Combining Floating Lists with Other Web Page Elements
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-12-23

    Table of Contents:
  • Combining Floating Lists with Other Web Page Elements
  • Using a floating HTML list with other web page elements
  • Polishing the appearance of the sample (X)HTML file
  • Seeing the recently styled HTML lists

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Combining Floating Lists with Other Web Page Elements - Polishing the appearance of the sample (X)HTML file


    (Page 3 of 4 )

    As I explained in the previous section, it would be nice to make the floating lists that you saw before a bit more attractive. Thus, with this idea in mind, I'm going to add a gray background color and a thin dark border to them.

    The result of this styling process can be seen clearly in the CSS code below:



    ul.leftlist{

    float: left;

    width: 350px;

    position: relative;

    padding: 10px 20px;

    margin: 0;

    list-style-position: inside;

    list-style-type: disc;

    background: #eee;

    border: 1px solid #999;

    }

    ul.rightlist{

    float: right;

    width: 350px;

    position: relative;

    padding: 10px 20px;

    margin: 0;

    list-style-position: inside;

    list-style-type: disc;

    background: #eee;

    border: 1px solid #999;

    }


    As you can see, now the respective floating HTML lists will look much more attractive, since they’ll be displayed centered on a gray rectangle, which also will be surrounded by a thin black border. Of course, in this case the CSS styles applied to the lists in question are only a result of my personal preferences and naturally can be modified.

    All right, now that you have seen how the lists were spiced up with a couple of additional CSS styles, it’s time to see how they look when included into a web document, along with some other paragraphs.

    This process will be the last example that I’ll show you in this tutorial, so jump ahead and read the final section. We’re almost finished! 

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This last chapter of the series provides you with a few illustrational examples,...
     

    STYLE SHEETS ARTICLES

    - Image Replacement CSS Techniques
    - Using BlueTrip`s Success, Notice and Error C...
    - More Uses for the Thin and Caps CSS Classes ...
    - Styling Definition Lists with the BlueTrip C...
    - Styling Unordered and Ordered HTML Lists wit...
    - Using the BlueTrip CSS Framework`s Thin and ...
    - Adding Borders to Web Page Columns with Blue...
    - Introducing the BlueTrip CSS Framework
    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek