CSS question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aaron
    Confirmed User
    • Mar 2003
    • 4452

    #1

    CSS question

    when using CSS borders i am defning the border in the top of my page... the border is filling up to the browser though. is there a way to make it like a table where its only as wide as whats inside? (with out using any table!!)
  • Seb From Holland
    Confirmed User
    • May 2002
    • 2747

    #2
    WTF? Try again and this time in English. I might be able to help you out.

    Comment

    • aaron
      Confirmed User
      • Mar 2003
      • 4452

      #3
      OK so in the head of my html document i have p.border {border-width:medium; border-color:black; border-style:solid; }

      then on the page i have

      p class="border"

      and then an image im putting in side the border (to start off with)



      ok so its working and theres a border around the image but the border doesnt wrap to the image like a table border would.. it extends with white space to the edges of the browser

      Comment

      • aaron
        Confirmed User
        • Mar 2003
        • 4452

        #4
        ive been lookin on google and stuff and cant find anything

        is this even possible??

        Comment

        • Seb From Holland
          Confirmed User
          • May 2002
          • 2747

          #5
          why would you solve that with p /p around your image?

          Just use:

          img src="bla.jpg" class="thickborder"

          style
          img.thickborder { bla }
          style

          Comment

          • aaron
            Confirmed User
            • Mar 2003
            • 4452

            #6
            ok i get it now, thanks

            Comment

            • aaron
              Confirmed User
              • Mar 2003
              • 4452

              #7
              will you icq me man i have this assignment i have to turn this regular page usin table in to all CSS l;\

              Comment

              • Seb From Holland
                Confirmed User
                • May 2002
                • 2747

                #8
                No problem, glad I could help you out.

                Comment

                • Seb From Holland
                  Confirmed User
                  • May 2002
                  • 2747

                  #9
                  I'm sorry but I'm afraid I'm going to bed.. I'm fucking tired. If you still need help tomorrow night, send me an e-mail. If not, perhaps somebody else is willing to help you out.

                  Seb.

                  (info -at- digitalevolution -dot- nl)

                  Comment

                  • genomega
                    Confirmed User
                    • Feb 2002
                    • 1190

                    #10
                    http://www.w3schools.com/css/default.asp


                    No Jerk TGP
                    Gallery Monitor
                    MoneyBookers

                    Comment

                    Working...