#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Really need help with CSS


    Hello im new here and am currently learning CSS. Everything went ok untill now. I need to set the width of an inline element. I know it isn't possible but you can passby that problem by putting in display: inline-block

    However when I tried to too that the Block width was ok but the text went to the right of the screen.

    here is the code Im using now

    Code:
    .post1 { background-color: #000; color: #FF9500; } .post2 { background-color: #000; color: #FF9500; } .postlinksbar { background-color:#000;padding:7px;margin-top:auto;font-size:10px; }
    and here is a link to the part I have trouble with

    http://z13.invisionfree.com/The_Sweat_Radio/index.php?showtopic=67

    Im really desperate I already tried everything
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    okay nvm, I found it. Sorry for the thread. You can close it
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    6
    Rep Power
    0
    too late but inline elements dont do width, only block and inline block respect width (maybe table as well).

    if its a span use display block or inline-block - then it will work
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    yeah found out about that earlier today. But I fixed the problem by deleting all the width value's in every element except the body. now its a fixed width for every element

IMN logo majestic logo threadwatch logo seochat tools logo