Activity Stream
48,167 MEMBERS
62576 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1.     
    #1
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net

    Default Minor CSS Help needed.

    I tried my level best, but I couldn't do it.


    See this search box.


    The text 'Search' is stuck to the borders. I cannot move it a little bit more to right so that it comes inside the box.

    Here is the CSS of it.

    PHP Code: 
    #search {
        
    displayinline;
        
    floatright;
        
    margin0px 5px 0 5px;
        
    padding0px 0 0;
        
    text-alignleft;
        
    top0px;
    }

    #searchbox {
        
    width180px;
        
    float:left;
        
    padding5px 0px 3px 0px;
        
    backgroundurl('images/search.png');
        
    border0;
        
    margin2px 2px 2px 0px;
        
    color#fff;
        
    font-size11px;
        
    font-family"Lucida Grande""Lucida Sans Unicode"ArialHelveticaSans-Serif;
    }

    .
    go {
        
    margin-top6px;
        
    margin-left: -20px;
        
    padding0px;
        
    color#000;
        
    display:inline;

    Here is the form.

    PHP Code: 
    <form method="get" id="search" action="<?php bloginfo('home'); ?>/">
            <div><input type="text" value="Search" name="s" id="searchbox" onFocus="if (this.value == 'Search') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Search';}" />
            <input type="image" src="<?php bloginfo('template_directory'); ?>/images/go.png" align="top" alt="Search" class="go" value="Search" />
            
            </div>
            </form>
    EDIT:

    Live Website : http://scenexxx.com (+18, NSFW)
    BlaZe Reviewed by BlaZe on . Minor CSS Help needed. I tried my level best, but I couldn't do it. See this search box. http://i.imm.io/66MP.png The text 'Search' is stuck to the borders. I cannot move it a little bit more to right so that it comes inside the box. Here is the CSS of it. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    #searchbox input {
    margin-left: 15px;
    }

    Tried that?

  4.     
    #3
    Member
    Website's:
    RahulParekh.in DevilGang.in WhatsInADesign.com
    Code: 
    #search {
        display: inline;
        float: right;
        margin: 0px 5px 0 5px;
        padding: 0px 0 0;
        text-align: left;
        top: 0px;
    }
    
    #searchbox {
        width: 180px;
        float:left;
        padding: 5px 0px 3px 10px;
        background: url('images/search.png');
        border: 0;
        margin: 2px 2px 2px 0px;
        color: #fff;
        font-size: 11px;
        font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Sans-Serif;
    }
    
    .go {
        margin-top: 6px;
        margin-left: -20px;
        padding: 0px;
        color: #000;
        display:inline;
    }
    That's padding-left. That should fix it.

  5.     
    #4
    Member
    Website's:
    RahulParekh.in DevilGang.in WhatsInADesign.com
    Quote Originally Posted by Hillside View Post
    #searchbox input {
    margin-left: 15px;
    }

    Tried that?

    That's wrong as searchbox is the id for input box itself. Either use input#searchbox or #searchbox.

  6.     
    #5
    Member
    it would be better if u link to the site where you're getting the error so we can see the whole code

  7.     
    #6
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    @rahul,



    Thats what I'm getting
    ===========

    @Hillside,
    Its on my localhost.

    Here is the whole screenshot if you wanna see.
    http://i.imm.io/676L.png

  8.     
    #7
    Respected Member
    I would suggest the easiest way to be
    PHP Code: 
    value='      Search' 
    Just add as many spaces to the front of it to get it aligned where you want it.

  9.     
    #8
    Too busy :|
    Website's:
    L337Fx.com BeastieBay.net
    @Lock Down,

    That was the last thing which came to my mind earlier, if I don't get it done with CSS, then I'll add that

    EDIT:
    Live Website : http://scenexxx.com (+18, NSFW)

  10.     
    #9
    Respected Member
    Have you tried padding:15px in the search css. yet?

  11.     
    #10
    Retired NinJa
    Website's:
    loledhard.com
    padding-left: 10px;
    width: 165px;

    in #searchbox & it works fine



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. designer needed (pixel art minor work)
    By immortalxx in forum Community Cooperative
    Replies: 0
    Last Post: 2nd Mar 2012, 12:33 AM
  2. [Hiring] Need minor CSS & Wordpress Edits Paying Job
    By LuDo8 in forum Completed Transactions
    Replies: 7
    Last Post: 3rd Sep 2011, 09:29 PM
  3. Need a Minor Help on Java
    By Cool Aquarius? in forum Web Development Area
    Replies: 3
    Last Post: 20th Jan 2011, 08:46 PM
  4. DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
    By robert in forum Community Cooperative
    Replies: 0
    Last Post: 18th Jul 2010, 03:36 PM
  5. Staff Needed Posters NEEDED.!! With Benefits!
    By timboy18 in forum Community Cooperative
    Replies: 2
    Last Post: 17th Jul 2009, 06:54 AM

Tags for this Thread

BE SOCIAL