SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Noob - Streching page to match content!

    Im litterally only just looking into css in web design and i want to basically have a 2px frame around some text and the frame will grow depending how much text i have in the area of the page. If someone could help it would be great as i have never used css before now so ill need more than just snippets of code.

    Thanks in advance
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  2. #2
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    <div id="wrap"><p>text here</p></div>

    css (put in the <head> section for now):
    Code:
    <style type="text/css" media="screen">
    #wrap {
    margin: 10px auto;
    width: 80%;
    border: 2px solid black;
    padding: 20px;
    }
    </style>

  3. #3
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much for your help. Works a treat. Hopefully this will be the first part of my css endevour
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  4. #4
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by webnoob
    Hopefully this will be the first part of my css endevour
    If CSS seems a little 'too much' for you right now, I suggest getting a book. "Eric Meyer's - On CSS", takes you through real-life projects, one step at a time. It was of great help to me.

  5. #5
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help and the reply. Im finding the whole css thing quite easy so far. Been looking into it alot and am also learning alot. So ill probably carry on with the free tuts online. Thanks again
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"


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
  •