Thread: CSS help

Results 1 to 3 of 3
  1. #1
    dawid17's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    75
    Reputation
    10
    Thanks
    8

    CSS help



    Im trying to make sales cards but for some reason the button goes out of it. I want to get the effect which is shown below;




    my code
    HTML
    Code:
      <div class="package2">
    <p>ADVANCED PACKAGE</p>
    <div class="orange">
    <h2 class='dollar'>$30</h2></div>
    <p>Nullam suscipit vitae</p>
    <p>Etiam faucibus</p>
    <p>Vivamus viverra</p>
    <a href="#" class="buttons5">PURCHASE</a>
    </div>
    </div>
    CSS
    Code:
    .package2 {
      background-color: #f9f9f9;
      border: 1px solid #d7d7cf;
      width: 100%;
        height: 100%;
        margin-left: 20px;
    
        
     
    }
    
    .orange {
      background-color: #fd7c00;
    
    
    }
    
    .buttons5 {
      background-color: #fd7c00;
      text-decoration: none;
      color: #fff;
        padding: 5% 20%;
        
    }

  2. #2
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,314
    Code:
    <!doctype HTML>
    <html>
    <head>
    <style>
    .package {
    	color: red;
    	width: 400px;
    	font-size: 20px;
    }
    
    .package > h1 {
    	margin-top: 1px;
    	margin-bottom: 1px;
    	text-align: center;
    	color: grey;
    }
    
    .package > p {
    	margin-top: 1px;
    	margin-bottom: 1px;
    	text-align: center;
    	color:blue;
    	color: grey;
    }
    
    .package > h2 {
    	margin-top: 1px;
    	margin-bottom: 1px;
    	padding-left: 10px;
    	text-align: center;
    	color: white;
    	font-size: 60px;
    	background-color: green;
    }
    
    .package > div {
    	padding-top: 10px;
    	text-align: center;
    	display: flex;
    	justify-content: center;
    }
    
    .package > div > a {
    	text-align: center;
    	text-decoration: none;
    	background-color:green;
    	color: white;
    	padding: 15px;
    }
    </style>
    </head>
    <body>
    <div class="package">
    	<h1>BASIC PACKAGE</h1>
    	<h2>20$</h2>
    	<p>Nullam suscipit vitae</p>
    	<p>Etiam faucibus</p>
    	<p>Vivamus viverra</p>
    	<div>
    		<a href="#">PURCHASE</a>
    	</div>
    </div>
    </body>
    </html>

  3. #3
    dawid17's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    75
    Reputation
    10
    Thanks
    8
    Thank you!

Similar Threads

  1. [Help] PAST0HOOK CSS (HELP !)
    By WolfCristal in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 4
    Last Post: 06-28-2017, 04:23 AM
  2. [Help] HTML + CSS help
    By minyaza in forum Other Programming
    Replies: 1
    Last Post: 06-18-2016, 09:04 AM
  3. [Request] Looking for Wall Hack that works with sv_pure 0 1 or 2 servers for CSS Help plz!
    By beastmode88 in forum CounterStrike Online Hacks
    Replies: 4
    Last Post: 01-07-2013, 08:16 AM
  4. I NEED CSS... PLZ HELP
    By XxbluhhxX in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 2
    Last Post: 04-25-2009, 02:26 AM
  5. Help with css hack
    By storm151515 in forum Suggestions, Requests & General Help
    Replies: 2
    Last Post: 10-07-2008, 10:55 PM