WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to use css in a post ? (2 posts)

  1. summerrain90
    Member
    Posted 2 years ago #

    Hello, i want to use some css in my post like this

    my code:

    <style type="text/css">
    #navlist{position:relative;}
    #navlist li{margin:0;padding:0;list-style:none;position:absolute;top:50px; left:200px;}
    #navlist li, #navlist a{height:40px;display:block;}
    #home{left:0px;width:95px;}
    #home{background:url('http://i582.photobucket.com/albums/ss265/summerrain_9/web%20img/post001.png') 0 0;}
    #home a:hover{background: url('http://i582.photobucket.com/albums/ss265/summerrain_9/web%20img/post001.png') -95px 0px;}
    #home a:active{background: url('http://i582.photobucket.com/albums/ss265/summerrain_9/web%20img/post001.png') 95px 0;}
    </style>
    <div align="center" style="background-image: url(http://i582.photobucket.com/albums/ss265/summerrain_9/web%20img/btn-bg-grain.jpg); height: 265px; width: 505px;">

    <ul id="navlist">
    <li id="home">

    </div>

    but the code does not work.

    how can i reslove it?

  2. summerrain90
    Member
    Posted 2 years ago #

    i resolved!

Topic Closed

This topic has been closed to new replies.

About this Topic