Results 1 to 6 of 6

Thread: height adjusting of H2 inside div

  1. #1
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default height adjusting of H2 inside div

    i have a really stupid problem that i cant figure out-i want to do something like this(and ofcourse without the color code and the 23 in the mid) :

    but what i get is this(haven't made that menu yet):
    http://shenkar.co.il/genia/olive/

    tried minus margin to the h2,padding,margin to the images,nothing.
    also,is my markup ok or there is a better way to achieve this simple layout?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    What's the difference between the two?
    Jeremy | jfein.net

  3. #3
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    lol designers can drive u crazy- the green leafs need to begin at the same level as the text
    on the same line

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Sorry your Majesty(), change your css to this:
    Code:
     /*–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
    Olive tree hotel Style Sheet 
    version:   1.0
    Author:    Genia Malinsky
    E-mail:    genia.m@gmail.com
    –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
    body{
    	background: #b3bc8d;
    	margin:0;padding:0;
    }
    .clear{clear:both;}
    #containor {  margin:0 auto; width:1020px;padding-top:20px;}
    #header{
    	height:122px;
    }
    #logo{
    	float:left;
    	margin-left:52px;
    	display:block;
    }
    #title h2{
    	display: inline;
    	color:#fff;
    	font-family:"Times New Roman";
    	font-size: 21px;
    	text-align:center;
    	height:31px;
    	position: relative;
            margin: 0 10px 0 10px;
    vertical-align: middle;
    }
    #title img {
      vertical-align: bottom;
    }
    
    #title{
    		height:41px;
    		float: right;
    		margin-top:40px;
    		margin-right: 90px;
    }
    
    .l{float:left;display:inline;}
    .r{float:right;display:inline;}
    Jeremy | jfein.net

  5. #5
    Join Date
    Jan 2008
    Posts
    73
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    oh,thanks alot.
    and i meant that I on the first didn't saw the difference.
    anyway,why doesn't margin\padding didn't worked?

    and now to the fun part- the ul desgin.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I think it's because your using inline positioning, but I really don't know - I'm not a css expert.
    Last edited by Nile; 01-25-2009 at 08:39 PM. Reason: Mistake..
    Jeremy | jfein.net

Bookmarks

Posting Permissions

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