Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Aligning Text & Image

    I am trying to align some text and an image, but unfortunately, after many tries, it is not working. Please help!

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" type="text/css" href="style.css"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>b&d originals</title>
    </head>
    
    <body>
    	<div class="menubar">
    		<p>
    		<ul>
    		<li><a href="">WORK</a></li>
    		<li><a href="">ABOUT</a></li>
    		</ul>
    <img class="center" src="../../../Desktop/Olde_English_40_bottle.jpg" width="340" height="375" />
    		</p>
    	</div> 
    </body>
    </html>
    Code:
    /* CSS Document */
    
    img.center {   
    display: block;   
    margin: 0px auto;
    }
    
    ul
    {
    list-style-type:none;
    margin:0;
    padding:0;
    }
    
    .center {vertical-align: baseline;}
    link to what it looks like now: http://img577.imageshack.us/img577/5...30523at233.png

    what i want to do:
    http://img854.imageshack.us/img854/9...30523at238.png

    I want to move the text a little bit up instead of aligning it all on the same line at the bottom(as you can see in the picture). How would I achieve this?

    Also, how do I simply just align everything on the same line?
    Last edited by VIPStephan; 05-27-2013 at 04:53 PM. Reason: corrected code BB tags

  • #2
    Regular Coder
    Join Date
    Sep 2011
    Posts
    267
    Thanks
    49
    Thanked 1 Time in 1 Post
    Browser can't load your first screen shot:
    http://img577.imageshack.us/img577/5...30523at233.png

  • #3
    New to the CF scene
    Join Date
    May 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Tags for this Thread

    Posting Permissions

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