CSS - Box around ADS

Discussion in 'CSS' started by Emperor, Jan 21, 2007.

  1. #1
    Can someone please help me create a box around my ads? I’ve done some Google searches and haven’t been able to come up with anything. What I was looking for was the code and an explanation on how to use it.
     
    Emperor, Jan 21, 2007 IP
  2. MattD

    MattD Peon

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put the ads inside a <div>, then simply use border: 1px solid red; or whatever on that div.

    I can give you an example if you want more.
     
    MattD, Jan 21, 2007 IP
    Emperor likes this.
  3. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your help but I've just finished figuring it out.
     
    Emperor, Jan 21, 2007 IP
  4. jumpenjuhosaphat

    jumpenjuhosaphat Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Another method you could use is to use the <fieldset> tag.
     
    jumpenjuhosaphat, Jan 26, 2007 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Which would be semantically and structurally untrue. The fieldset tag defines its content as being a related set of form controls.

    A div tag would be an appropriate container for ads, or the p tag could hold a single ad.

    cheers,

    gary
     
    kk5st, Jan 26, 2007 IP