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 2 of 2

Thread: CSS Positioning

  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Positioning

    #example
    {
    position: absolute; (means doesn't effect aligning of anything?)
    }

    What are some other positionings for css? People talk about fixing something, is that like keeping a table in a certain position no matter what?

    Question #2: How do you get a background image so that it isn't really background but stays in front of the page instead of the back? Example. Sorry not the best example but see how that nav bar stays there? Is that nav bar fixed?

    Thanks

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Wolfmans55
    #example
    {
    position: absolute; (means doesn't effect aligning of anything?)
    }

    What are some other positionings for css? People talk about fixing something, is that like keeping a table in a certain position no matter what?
    there is relative positioning absolute positioning fixed, and static, check em out at http://www.w3schools.com/css/css_positioning.asp
    Quote Originally Posted by Wolfmans55
    Question #2: How do you get a background image so that it isn't really background but stays in front of the page instead of the back? Example. Sorry not the best example but see how that nav bar stays there? Is that nav bar fixed?
    That is simply at the bottom of the browser window like this
    Code:
    #bottomFixedBigGames
    	{
    		margin: 0;
    		padding: 0;
    		position: absolute;
    		bottom: 16px;
    		left: 615px;
    		width: 113px;
    		height: 113px;
    		background-position: 0px 0px;
    		background-image:url(/images/NavGamesBig.gif);
    		background-repeat:no-repeat;
    		overflow: hidden;
    		z-index: 1;
    	}
    its absolutely positioned to 16 pixels from the bottm, and its z-index is set to one, which is displaying it over the rest of the site


  •  

    Posting Permissions

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