CSS assisiance needed.

Discussion in 'CSS' started by AutumnBreeze, Sep 9, 2007.

  1. #1
    I am *nearly* CSS illiterate, but I am starting to understand a little gradually. I am adapting a template to suit me and want some help with one section.

    #splash
    {
    position: absolute;
    right: 30px;
    background: #EAEAE2 url('images/a10.jpg') no-repeat;
    width: 458px;
    height: 92px;
    }

    Where "url('images/a10.jpg') no-repeat;" is, I want to replace it with an adsense banner or text box. Do I just replace url('images/a10.jpg') no-repeat; with the code or is there something else I need to do to make it work?
     
    AutumnBreeze, Sep 9, 2007 IP
  2. Rasczak

    Rasczak Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .... i don't think you can solve this in CSS (maybe only in combination with PHP), you just have to insert the code inside the element, overriding background settings...
     
    Rasczak, Sep 10, 2007 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The url part is referring to a background image, and has nothing to do with the actual content in that box. In the HTML, you need to find the div id="splash" and if you want text, you need <p>bunch of text and stuff</p>. Adsense boxes I don't really know anything about but they would also go into the HTML, not the css. Then, if the adsense thing is a different height and width, then change that in the CSS.
     
    Stomme poes, Sep 10, 2007 IP
  4. AutumnBreeze

    AutumnBreeze Peon

    Messages:
    1,033
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys, that works just fine :) Any ideas where one could find a good, easy to understand, CSS tutorial?
     
    AutumnBreeze, Sep 10, 2007 IP
  5. RedMatrix

    RedMatrix Guest

    Messages:
    69
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would say you can start with HTML Goodies website. He teaches these things in a real brick & mortar school too.
     
    RedMatrix, Sep 11, 2007 IP
  6. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you're really serious, though, I'd go look at the library for one of the two books:
    Build Your Own Web Site the Right Way Using HTML and CSS by Ian Lloyd
    or/and
    HTML Utopia: Designing Without Tables Using CSS by Rachel Andrew and Dan Schafer <---this book assumes you know your HTML
     
    Stomme poes, Sep 11, 2007 IP