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 3 of 3
  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    16
    Member #
    39998

    changing the position of a text inside an image?

    Hello everyone.
    I'm trying to figure out how to move a text inside an image..though, I don't really know if it's inside an image but it's more like over the image. Anyways, on mischievous-designs.net, on my content header, as you can see the black text is sort of nearing at the top. Is there a way to center that or maybe make it go down a bit so it's centered vertically.

    This is the code I'm using for that specific header:
    h2
    {background-image: url('images/header.jpg');
    background-repeat:no-repeat;
    width: 493px;
    height:25px;
    Font-style: Verdana black;
    color: #000000;
    text-align:center;
    font-size:15px;
    text-transform:uppercase;
    margin-left: -4px;
    margin-top:10px;
    }

    Any help would be greatly appreciated, thank you!

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    line-height:25px;
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Aug 2014
    Posts
    16
    Member #
    39998
    Quote Originally Posted by Ronald Roe View Post
    line-height:25px;
    Thank you so so much. Worked like a charm


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
  •  
All times are GMT -6. The time now is 05:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com