51 users online (0 members and 51 guests)  


  Results 1 to 4 of 4

Related

  1. Replies: 1
  2. Replies: 0
  3. Text Positioning    Forum: HTML Forum
    Replies: 2
  4. Positioning Text over a Bkrnd Image    Forum: CSS Forum
    Replies: 3
  5. Positioning Text    Forum: HTML Forum
    Replies: 0
  1. #1
    svoltmer's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Posts
    9

    Positioning Text

    I have text next to a graphic in my navigation that I would like to center in-line with the corrisponding graphic using a style class ".text_buttons". I just need a push in the right direction. Could you take a look a let me know what to ad to my code? Thanks!

    http://www.home.earthlink.net/~svoltmer/

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Not 100% sure I follow what you mean.

    If you mean you wish the text to be as 'wide' as the graphic, then set the 'width: ' attribute to be the same as your graphic.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Android's Avatar

    Status
    Offline
    Join Date
    Oct 2002
    Location
    I AM CANADIAN
    Posts
    440

    Talking I have an idea......

    Change :
    Code:
    <style type="text/css">
    a:link {color:white;}
    a:visited {color:white;}
    a:active {color:white;}
    a:hover {color:#99CCFF;}
    .text_buttons	{padding:0px;
    	border:0px;
    	margin-left:5px;
    	margin-right:0px;
    	margin-bottom:0px;
    	margin-top:0px;
    	text-decoration:none;
    	vertical-align:middle;
    	}
    </style>
    to
    Code:
    <style type="text/css">
    a:link {color:white;}
    a:visited {color:white;}
    a:active {color:white;}
    a:hover {color:#99CCFF;}
    .text_buttons { margin-left:5px;text-decoration:none; }
    img { float:left; }
    </style>
    See if that's what you want.

  4. #4
    svoltmer's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Posts
    9
    sorry, I didn't explain well. I ment to have the button image line up horizontally (centered). I found out how to do it, but thanks for your time!



Tags for this Thread