Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member PF2G's Avatar
    Join Date
    Sep 2011
    Posts
    21
    Member #
    29252
    Hi,
    I want to change the background color of this template i downloaded, but i can't find the right css code to change.

    This is the hex code of the color i want: #f4f3ee.

    The template is this one: (I want to change the background green with the color i tell above)



    Here's the css code i have and i want to change:
    Code:
    body {
        background:#000000 url(images/bg.jpg) repeat-x top left;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 12px;
        text-align: justify;
        color: #666666;
        margin:0 auto;
    }
    
    h1 {
    }
    
    h2, h3 {
        margin-top: 0px;
    }
    
    h4, h5, h6 {
    }
    
    p, ol, ul, dl, blockquote {
    }
    
    a {
        color: #000000;
        text-decoration: none;
    }
    
    a:hover {
        text-decoration: none;
        color: #235510;
    }
     
    /* Header */
    
    #header {
        width: 950px;
        height:100px;
        margin: 0px auto;
        }
    
    #header h1 {
        text-align: left;
        margin: 0px;
        padding-top: 40px;
        font-size: 32px;
        color: #000000;
        padding-left: 10px;
    }
    
    #header h2 {
        margin: 0px;
        text-align: center;
        font-size: 11px;
    }
    
    #header a {
        text-decoration: none;
        color:#000000;
    }
    
    /*banner*/
    #banner {
        width: 950px;
        height: 346px;
        margin: 0px auto;
        background:url(images/bann_menu.png) no-repeat left top;
    }
     
    /* Post */
    
    .latest-post {
        padding: 0 0 1em 0;
    }
    
    .latest-post h2 {
        margin-bottom: 0.5em;
        padding: 8px 10px 2px 10px;
        text-transform: uppercase;
        font-size: 16px;
        color: #75C210;
        border-bottom: 1px solid #cccccc;
    }
    
    .post {
        padding: 2em 0 1em 0;
    }
    
    .post h3 {
        margin-bottom: 0.5em;
        font-size: 1.2em;
        color: #000000;
    }
    
    .file * {
        color: #5B5B5B;
    }
    
    /** Forms */
    
    form {
        margin: 0px;
        padding: 0px;
    }
    
    .input1 {
        width: 110px;
        background-color: #2A2A2A;
        border: 1px solid #363636;
        color: #FFFFFF;
    }
    
    /* Content */
    
    #content {
        width: 950px;
        margin: 0 auto 10px auto;
        padding: 0px 0px 0px 0px;
    }
    
    #colTwo {
        margin: 0px;
        padding: 0px 15px 15px 15px;
        background-color: #FFFFFF;
    }
    
    #colTwo p {
        line-height: 25px;
    }
    #colTwo img{
        padding-right:10px;
        padding-top:10px;
    }
    
    #colTwo h3{
        padding: 10px 10px 2px 10px;
        text-transform: uppercase;
        color: #000000;
    }
    
    /* Footer */
    
    #footer {
        width: 100%;
        margin: 0px auto;
        padding: 15px 0px;
        height: 200px;
    }
    #footer a{
        text-decoration:none;
        color: #38831E;
    }
    #footer p {
        margin: 0px;
        text-align: center;
        color: #38831E;
    }
    .devider{height:20px;}
    .services{
        padding:10px;
        border:#E2F9BD 1px solid;
        background-color:#FFFFFF;
        margin-top:30px;
    }
    .button{
        display:block;
        width:80px;
        height:25px;
        background:#38831E;
        color:#FFFFFF;
        float:right;
        margin-bottom:5px;
        padding-left:15px;
        }
    I need this ASAP, thank you
    PF2G

  2.  

  3. #2
    Member Gregory Clayton's Avatar
    Join Date
    Nov 2011
    Location
    Blackpool
    Posts
    76
    Member #
    30080
    Liked
    14 times
    background:#000000 url(images/bg.jpg) repeat-x top left;
    Replace the #000000 with your new color and remove the url(images/bg.jpg) and see if that works.
    Plus the image didnt load for me to view so thats just a guess

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Yeah - Gregory is right - the CSS should look like this:

    body { background:#f4f3ee;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: justify;
    color: #666666;
    margin:0 auto;
    }
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  5. #4
    Junior Member PF2G's Avatar
    Join Date
    Sep 2011
    Posts
    21
    Member #
    29252
    Yeah it worked, thanks. Now i want other thing.

    In that code i want to insert a slideshow in the banner:

    PHP Code:
    <?PHP
    $dbhost 
    'localhost';
    $dbuser 'root';
    $dbpass '';

    $conn mysql_connect($dbhost$dbuser$dbpass) or die ('Error connecting to mysql');

    $dbname 'destaques';
    mysql_select_db($dbname);
    ?>

    <html>
    <head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
        $('#slide_fotos').cycle({
            fx: 'fade',
            pager: '#pager'
        });
    });
    </script>
    <style type="text/css">
    * {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    body {
        font: 12px Verdana, sans-serif;
        color: #000;
    }
    a { text-decoration: none; }
    a:hover { text-decoration: underline; }
    #slideshow {
        width: 640px;
        height: 270px;
        position: relative;
    }
    #slide_fotos p {
        position: absolute;
        right: 0;
        top: 210px;
        z-index: 3;
        padding: 10px 20px;
        background: url('images/over_white.png');
    }
    #slide_fotos {
        height: 100%;
        overflow: hidden;
    }
    #pager {
        position: absolute;
        z-index: 10;
        top: 20px;
        right: 20px;
    }
    #pager a {
        color: #000;
        width: 17px;
        height: 17px;
        line-height: 15px;
        text-align: center;
        display: inline-block;
        font-size: 10px;
        margin: 2px;
        color: #fff;
    }
    #pager a.activeSlide {
        color: #000;
        background: url('images/over_white.png');
    }
    </style>
    </head>
    <body>
        <div id="slideshow">
            <ul id="slide_fotos">
                <?PHP
      
                ?>
            </ul><!-- /fotos -->
            <p id="pager">

            </p><!-- /pager -->

        </div><!-- /slideshow -->

    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-7671312-4']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
    </body>
    </html>
    i'm not seeing insert this in the middle of the css code. Can you help me?

  6. #5
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by PF2G, post: 227052
    Yeah it worked, thanks. Now i want other thing.
    In that code i want to insert a slideshow in the banner:
    i'm not seeing insert this in the middle of the css code. Can you help me?
    This should be posted to the PHP forum, but I can tell you now you need to have something more in your code:
    <body>
    <div id="slideshow">
    <ul id="slide_fotos">
    <?PHP
    (this is where the slideshow should be, but you have not specified anything inside your PHP tags)
    ?>
    </ul><!-- /fotos -->
    <p id="pager">

    </p><!-- /pager -->

    </div><!-- /slideshow -->
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:08 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com