Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member Y0Y0's Avatar
    Join Date
    Feb 2012
    Posts
    2
    Member #
    30923
    Hi awesome web designer I'm new student who start learning and until now I'm actually learned HTML & CSS very well

    I'M HERE TO GET HELPS FROM YOU GUYS

    So today I face a problem while I'm "practicing" with HTML & CSS and the problem is there on the pic blew

    Even when I used margi-left and margin-right it's change the whole background and the text and all I want is to make the text fit or let's say inside ? (Try to view large pic)



    this the css code of it

    Code:
    .desc {
        text-align: center;
        background-color: black;
        border-radius: 20px;
        color: white;
    }
    Note: sorry my english is not that good, but I will try my best and make it way to learn with you too!

  2.  

  3. #2
    Eis
    Eis is offline
    Junior Member Eis's Avatar
    Join Date
    Feb 2012
    Posts
    12
    Member #
    30892
    Liked
    2 times
    Did you try padding?

  4. #3
    Junior Member Y0Y0's Avatar
    Join Date
    Feb 2012
    Posts
    2
    Member #
    30923
    Quote Originally Posted by Eis, post: 230928
    Did you try padding?
    I wrote padding: 10px;

    and it's work

    THANKS

  5. #4
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Hampshire, UK
    Posts
    1,473
    Member #
    28473
    Liked
    265 times
    remember with padding that if you add padding to the left or right you will need to set the width minus the left/right padding. For instance. If the container is 1000px and you add padding to the left and right of 10px then you will need to make sure the width is 980px otherwise you will overflow.
    Eis likes this.
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

background fit to text

Click on a term to search for related topics.
All times are GMT -6. The time now is 09:39 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com