Results 1 to 2 of 2

Thread: Issue styling an li element

  1. #1
    Join Date
    Jul 2008
    Posts
    136
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default Issue styling an li element

    I need to add a "margin-top" style to the "Follow Us!" text

    Code:
    <li id="social-widget-2" class="widget Social_Widget"><h2 class="widgettitle">Follow Us!</h2>
    I've tried many different combos, but I must be overlooking something. I tried with h2 styles as well and no luck.

    Code:
    #social-widget-2 .Social_Widget {margin-top:20px;}
    Thank you!

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,272
    Thanks
    16
    Thanked 387 Times in 385 Posts
    Blog Entries
    16

    Default

    Try
    Code:
    #social-widget-2 .widgettitle { margin-top:20px; }
    Or maybe a top-padding on the li instead
    Code:
    #social-widget-2 { padding-top:20px; }
    Other CSS on the page might be interfering though so you might need to provide the link to the actual page.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. SVG Element Drag/Drop Issue on Zoomed in SVG
    By vishal_aegisisc in forum JavaScript
    Replies: 0
    Last Post: 07-25-2012, 11:15 AM
  2. IE7 and appended elememnt styling issue
    By gerudo in forum JavaScript
    Replies: 4
    Last Post: 06-30-2010, 01:26 PM
  3. Help with a styling issue Smooth Navigational Menu
    By jasonmullee in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 01-20-2009, 08:16 PM
  4. Animated Collapsible DIV styling issue
    By wspence in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-23-2007, 07:58 PM
  5. Featured Content Slider Firefox styling issue
    By sol123 in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 08-12-2007, 08:09 PM

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
  •