Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other [Solved] Simple Text Styling with HTML

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30597
    neox212
    Member

    Hello Everyone,

    Firstly, i understand that the question i’m asking is nooby, however i hope i’ll recive your help.

    Can anyone show me how to make a simple box (of a custom color) around a custom text.

    Example: http://webdesignledger.com/ -> Subscribe section *under ads* .

    Waiting for anyone’s help – thanks.

    #77845
    zackw
    Member

    Its kind of hard to help you without seeing how your using it because there are many different ways to do what you want, but if you just want a background box around some text this will work. U can adjust the padding to change the height and width of the box around the text.

    HTML

    Subscribe Here


    CSS

    h2 {
    padding:3px 6px;
    color:#fff;
    background:#000;
    }

    that will do it for you

    #77843
    neox212
    Member

    Thanks for your answer zackw,

    But i need all of this to be done in html, as i’m going to use this code as a wordpress widget.

    Waiting other solutions.

    #77835
    zackw
    Member

    put the styling inline

    Subscribe Here

    #77838
    neox212
    Member

    Thanks for your answer zackw!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.