Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9

Thread: CSS Help

  1. #1
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default CSS Help

    http://www.willgreen.me/stalk

    what i need help with is the filter part.
    i want it to go in a straight horizontal line, but instead it has several lines.
    this is what it's suppose to look like:


    here's my CSS and HTML:

    html;
    HTML Code:
    <div id="results">
    results for: $search_name
    
    <div id="filter">
    filter <strong><div style="font-size: 18px;">{</div></strong>
    
    <img src="http://www.willgreen.me/stalk/images/icons/facebook.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/flickr.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/lastfm.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/plurk.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/tumblr.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/twitter.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/vimeo.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/youtube.png" border="0" />
    
    <strong><div style="font-size: 18px;">}</div></strong>
    </div>
    </div>
    css;
    Code:
    #results {
    background-image: url(http://willgreen.me/stalk/images/results.png);
    width: 557px;
    height: 52px;
    color: #525f6b;
    text-shadow: #FFFFFF 1px 1px 0px;
    padding-top: 25px;
    padding-left: 25px;
    margin: 1px auto;
    }
    
    #filter {
    float: right;
    margin-right: 25px;
    height: 20px;
    width: 200px;
    }
    +rep to anyone who contributes, i've been looking over this code for an hour now and it's bugging me that i can't fix it. maybe i'm just tired. thank you so much in advance!

  2. #2
    Join Date
    Nov 2008
    Posts
    194
    Tokens
    0

    Default

    Can't help, but this is a great idea.
    Spanish: DJ Memo // English: DJ Will
    ...Signing in from America

  3. #3
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Try using a span on the {}'s instead of a div.
    Back for a while.

  4. #4
    Join Date
    Jul 2008
    Location
    Devon
    Posts
    290
    Tokens
    0

    Default

    Code:
    #results {
    	background-image: url(http://willgreen.me/stalk/images/results.png);
    	width: 557px;
    	height: 52px;
    	color: #525f6b;
    	text-shadow: #FFFFFF 1px 1px 0px;
    	padding-top: 25px;
    	padding-left: 25px;
    	margin: 1px auto;
    }
    
    #filter {
    	float: right;
    	margin-right: 25px;
    	height: 20px;
    	width: 240px;
    }
    .braces {
    	font-size: 18px;
    	font-weight: bold;
    }
    HTML Code:
    <div id="results">
    	results for: $search_name
    
    	<div id="filter">
    		filter <span class="braces">{</span>
    
    		<img src="http://www.willgreen.me/stalk/images/icons/facebook.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/flickr.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/lastfm.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/plurk.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/tumblr.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/twitter.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/vimeo.png" border="0" />
    		<img src="http://www.willgreen.me/stalk/images/icons/youtube.png" border="0" />
    
    		<span class="braces">}</span>
    	</div>
    </div>

  5. #5
    Join Date
    Nov 2008
    Posts
    194
    Tokens
    0

    Default

    <span id="filter">
    filter <span class="braces">{</span>

    <img src="http://www.willgreen.me/stalk/images/icons/facebook.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/flickr.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/lastfm.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/plurk.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/tumblr.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/twitter.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/vimeo.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/youtube.png" border="0" />

    <span class="braces">}</span>
    </span>


    The DIV breaks a line, which is why it is going to the next line, I assume is the issue.
    Spanish: DJ Memo // English: DJ Will
    ...Signing in from America

  6. #6
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Tested with Firebug, should work.

    HTML Code:
    <div id="results">
    results for: $search_name
    
    <span id="filter">
    filter <strong><span style="font-size: 18px;">{</span></strong>
    
    <img src="http://www.willgreen.me/stalk/images/icons/facebook.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/flickr.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/lastfm.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/plurk.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/tumblr.png" border="0" /><img src="http://www.willgreen.me/stalk/images/icons/twitter.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/vimeo.png" border="0" />
    <img src="http://www.willgreen.me/stalk/images/icons/youtube.png" border="0" />
    
    <strong><span style="font-size: 18px;">}</span></strong>
    </span>
    </div>
    Back for a while.

  7. #7
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    thank you all.

  8. #8
    Join Date
    Dec 2006
    Location
    Scotland
    Posts
    1,365
    Tokens
    0

    Latest Awards:

    Default

    Wow, a really great idea. All the best with this project.

  9. #9
    Join Date
    Feb 2006
    Location
    London
    Posts
    7,904
    Tokens
    197

    Latest Awards:

    Default

    That's a great idea, good to see you've got the code working.
    That's why we seize the moment, try to freeze it and own it, squeeze it and hold it cause we consider these minutes golden.


Posting Permissions

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