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 8 of 8
  1. #1
    Join Date
    Jul 2010
    Location
    Lincolnshire, England
    Posts
    173
    Tokens
    1,251

    Default Trying to code my portfolio...

    Hey guys, I'm trying to code my portfolio at the moment, and Ive never coded anything yet - youve got to start somewhere!

    Anyway, its probably the dumbest question ever but I need to ask it, my navigation just wont move. Ive tried margin-top, margin-right, padding-top and padding-right... Nothing seems to work!

    My html :
    Code:
    </div>		<div id=" nav">
    			<ul id="navlist">
    				<li id="active">Home </li>
    					<li>About</li>
    					<li>Portfolio</li>
    					<li>Contact</li>
    				</ul>
    		</div>
    My CSS:
    Code:
    #nav {	float: right ;
    	margin-right: 100px;
    	margin-top: 50px;
    }
    #navlist li  {
    	display: inline;
    	list-style-type: none;
    	padding-right: 60px;
    	font-family: vijaya;
    	font-size: 30px;
    	color: #696262;
    }

    Any help as to why this wont work would be appreciated

    Sam.

  2. #2
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default

    Add in a #navlist {float:right;} and add your margins to that.

    Do you have it uploaded anywhere so I can have a look and check to make sure I'm pointing you in the right direction. Only so much I can say with what you've given.

  3. #3
    Join Date
    Jul 2010
    Location
    Lincolnshire, England
    Posts
    173
    Tokens
    1,251

    Default

    Sorry dont have anywhere to upload it at the moment, and that seemed to do the trick. Thanks!

    No doubt ill be back in about 10 minutes with another problem though :d

  4. #4
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default

    You don't really need the <div> around that <ul>.

    And if you wanted to be mega cool... you could use the old <nav></nav> HTML5

  5. #5
    Join Date
    Jul 2010
    Location
    Lincolnshire, England
    Posts
    173
    Tokens
    1,251

    Default

    Just removed the div around it, and whats the old <nav></nav> ?

  6. #6
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default

    Basically you can use it to denote where the navigation is and then in the css treat it like it was something such as a header tag.

    So for example, you might have this in your code

    <h1>Title<h1>

    And the css would be just

    h1{code here};

    Well you can do the same for <nav>Your list here</nav>

    CSS:

    nav{code here};

  7. #7
    Join Date
    Jul 2010
    Location
    Lincolnshire, England
    Posts
    173
    Tokens
    1,251

    Default

    Alright, if I have time ill try give that a go.

    Ill stick to what I have at the moment because I know it works


    EDIT: Just did the <nav> thing and its actually not that hard and it worked easier

    Thank you !
    Last edited by Repair; 03-08-2012 at 11:23 PM.

  8. #8
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    I would use <nav> just yet IE is here to crash the party!

Posting Permissions

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