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 Tools
  • Rate This Thread
  1. #1
    New to the CF scene
    Join Date
    Apr 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Beginner, issues with float

    I'm trying to adjust the page so the icons are across the top of the page and fixed so they are always visible, but I'm having a really hard time getting them to move anywhere, let alone aligned next to each other. I only know painfully basic coding so this is a real challenge for me, any help is appreciated.

    -3-jpg

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,251
    Thanks
    30
    Thanked 859 Times in 857 Posts
    With code we can only guess. I used the same image 5 times
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <title>Title</title>
    <style type="text/css">
    body{
    	margin: 0;
    	padding: 0;
    }
    header{
    	width: 150px;
    	margin: 0 auto;
    }
    img{
    	float: left;
    	padding: 5px;
    }
    </style>
    </head>
    
    <body>
    	<header>
    		<img src="images/trashcan.png" height="20" width="20">
    		<img src="images/trashcan.png" height="20" width="20">
    		<img src="images/trashcan.png" height="20" width="20">
    		<img src="images/trashcan.png" height="20" width="20">
    		<img src="images/trashcan.png" height="20" width="20">
    	</header>
    </body>
    </html>
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.


 

Tags for this Thread

Posting Permissions

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