restyle webpage

Hi,

I have a webpage with some styling that I want to change. The page just doesnt look great.
Can someone show me an example of a better way to display this data with CSS?

I have attache the code with CSS. It is cakephp

    <div class="container-fluid pagefont">
        
     <div class="row-fluid">
   <div class='span4'>
       
     <?php  if ($logged_in) {
      echo "<h4>Welcome: " . AuthComponent::user('username'); 
     }
       ?>
           
       </h5>
          
       </div>
        <div class='span4'>
       
            <h3> <?php   echo 'Dashboard'; 
                          
          
            ?></h3>
                <br>
            <br> <br>
       </div>
        <div class='span4'>
         <?php   echo $this->element('date');    ?>
     
       </div>  
         
    </div>
      <div class="row-fluid">
   <div class='span12'>  
       
          <?php  if ($logged_in) {
     
          if ($foundMessage==true){
                  echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'(NEW )TimeSheets ', array(
                                                 'controller' => 'timeSheets',  'action' => 'admin_list2',      ),
                          array('escape'=>false,'class' => 'mybtn myred')).'</td>';
           }
           else{
                  echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'TimeSheets ', array(
                                                 'controller' => 'timeSheets',  'action' => 'admin_list2',      ),
                          array('escape'=>false,'class' => 'mybtn mygreen')).'</td>';
        
               
           }
  
   	  echo '  ';
                              
         if ($foundMessage2==true){
                    echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'(NEW )Tutor Requests', array(
                                                 'controller' => 'tutorRequests',  'action' => 'admin_requests',      ),
                            array('escape'=>false,'class' => 'mybtn myorange')).'</td>';
            }
           else{
                    echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'Tutor Requests', array(
                                                 'controller' => 'tutorRequests',  'action' => 'admin_requests',      ),
                            array('escape'=>false,'class' => 'mybtn mygreen')).'</td>';
         
           } 
            
          echo '  ';
           
            if ($foundMessage3==true){
                          echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'(NEW )Student Requests', array(
                                                 'controller' => 'studentRequests',  'action' => 'admin_requests',      ),
                                  array('escape'=>false,'class' => 'mybtn mygreen')).'</td>';
            } 
            else{
                                echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'Student Requests', array(
                                                 'controller' => 'studentRequests',  'action' => 'admin_requests',      ),
                                        array('escape'=>false,'class' => 'mybtn mygreen')).'</td>';
          
            }
            
         echo '</h4>';
                         
   }      ?> 
       
        <?php  
         
          echo '<br><br>';
          echo        $this->Html->link(        'Student/Guardian Email', array('controller'=>'aptemails','action' => 'newemails')  ,array('escape' => false, 'class' => 'mybtn')
					);						
        
          echo        $this->Html->link(        'Tutor Email', array('controller'=>'aptemails','action' => 'newemails2')  ,array('escape' => false, 'class' => 'mybtn')
					);						
    
          echo $this->Html->link(        'Email History', array('controller'=>'aptemails','action' => 'emailhistory')  ,array('escape' => false, 'class' => 'mybtn')
						);						
                
                 echo $this->Html->link(        'New Student Sms ', array('controller'=>'apttexts','action' => 'smslists',20)  ,array('escape' => false, 'class' => 'mybtn')
						);						
                 echo $this->Html->link(        'New Tutor Sms ', array('controller'=>'apttexts','action' => 'smslists2')  ,array('escape' => false, 'class' => 'mybtn')
						);						
               
          
                 echo $this->Html->link(        'Sms History', array('controller'=>'apttexts','action' => 'smshistory')  ,array('escape' => false, 'class' => 'mybtn')
						);						
        
         /*
               echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'TimeSheets', array(
                                               'controller' => 'timeSheets',  'action' => 'admin_list2',      ),array('escape'=>false,'class' => 'mybtn')).'</td>';
               echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'Tutor Requests', array(
                                                'controller' => 'tutorRequests',  'action' => 'admin_requests',      ),array('escape'=>false,'class' => 'mybtn')).'</td>';
    
                       echo  $this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'Student Requests', array(
                                                'controller' => 'studentRequests',  'action' => 'admin_requests',      ),array('escape'=>false,'class' => 'mybtn')).'</td>';
         */
         ?>
       
       
       <br><br>
    </div>
    </div>
        <br>
        <br>
    <div class="row-fluid">
   <div class='span4'>
       
       
        <div class="dashbox">
           <div  class="dashhead">
               TimeSheet Stats
           </div>
            <div class="textf">  
            <?php 
            $timesheetStart=date('d-m-Y',(strtotime( $timesheetStart)));
               $timesheetEnd=date('d-m-Y',(strtotime( $timesheetEnd)));
               
               echo '<br>Last Timesheet Period';  
             echo '<br><br>Last Timesheet Period Start: '. $timesheetStart ;
              echo '<br>Last  Timesheet Period End:    '. $timesheetEnd;
            
              if ( AuthComponent::user('role')=='admin'){
                  echo '<br><br>Last Pay Period Tutor Cost: $'.$lastPayCost;
             //     echo '<br>Last Pay Period Revenue : $'. $revenue  ;
           
              }
              //    echo '<br>MakeUp Lesson Count: '. $makeUpCount  ;
     
         
             echo  '<br>'.$this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'more details...', array(
		 'controller' => 'users',  'action' => 'admin_dincome',      ),array('escape'=>false,'class' => '')).'</td>';
   
            ?>
        </div>
        </div>

          
       </div>
        <div class='span4'>
       
            <div class="dashbox">
           <div  class="dashhead">
               Inactive/Cancelled Lessons
           </div>
                <div class="textf">  
                
              <?php
               $currentStartDate =date('d-m-Y',(strtotime( $currentStartDate )));
               $currentEndDate=date('d-m-Y',(strtotime( $currentEndDate)));
               
             echo '<br>Cancelled Lesson Details'; 
             echo '<br><br>Current Pay Period Start: '. $currentStartDate ;
              echo '<br>Current Pay Period End:    '. $currentEndDate;
              echo '<br><br>No. New MakeUps for Pay Period : '. $noMakeUps;
              echo '<br>Cancellations by Students : '. $cancels;
        // $params='24-02-2015/24-02-2015';    
                   echo  '<br><br>'.$this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'more details...', array(
		 'controller' => 'users',  'action' => 'admin_dlesson',     ),array('escape'=>false,'class' => '')).'</td>';
  
            ?>  
           </div>         
        </div>
            
       </div>
        <div class='span4'>
            
          <div class="dashbox">
           <div  class="dashhead">
               Lesson/Student Stats
           </div>
            <div class="textf"> 
           <?php echo ''; 
              echo '<br><br>Current Pay Period Start: '. $currentStartDate ;
              echo '<br>Current Pay Period End:    '. $currentEndDate;
             echo'<br><br>Todays date: '.$currDate2;
             echo '<br><br>No. Lessons today: '. $lessonCount; 
        //     echo '<br>No. Lessons this Pay Period: '.$lessonCountPayPeriod;
        //   echo '<br>No. Lessons this week : '. $lessonCountWeek;
            
             
           echo  '<br><br>'.$this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'Lesson Stats ...', array(
		 'controller' => 'users',  'action' => 'admin_dhours',      ),array('escape'=>false,'class' => '')).'</td>';
           
           echo  '<br><br>'.$this->Html->link($this->Html->tag('i', '', array('class' => '','title'=>'')).'Student Stats ...', array(
		 'controller' => 'users',  'action' => 'admin_dstud',      ),array('escape'=>false,'class' => '')).'</td>';
   
            
            ?>
          </div>
       </div>
       </div>  <!-- span -->
  
    </div> <!-- row -->

    <br> <br> <br>
    
    
    
 </div> <!-- end everything container -->
  <br> <br> <br> <br> <br> <br>
 <style>
  
.dashhead{
    height:35px;
    border:none;
    text-align:center;
    padding-top:3px;
   
    font-size: 18px;
    font-weight:bold;
    color:white;
    background: -webkit-linear-gradient(blue, lightblue);
    background: -o-linear-gradient(blue, lightblue);
    background: -moz-linear-gradient(blue, lightblue);
    background: linear-gradient(blue, lightblue);
}
  .dashbox {
    height:400px;
    width:300px;
    border:1px solid blue;
    padding-left:0px;
    
}
.textf {
   font-weight:bold;
    padding-left:10px;
    
}

.pagefont{
        color:black;
      

}
</style>

Open in new window

main.png
jagguyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Here is a sample using Bootstrap - live version here
<!doctype html>
<html>
<head>
<title>Test</title>
<link href="css/bootstrap.css" rel="stylesheet" />
<style type="text/css">
.gutter {
  margin-top: 15px;
  margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="container">
  <h4>Sample Bootstrap Layout</h4>
  <h5>Author: Julian Hansen</h5>
  <p>Button colours can change according to preference - same for panels</p>
  <div class="row gutter">
    <div class="col-xs-12 btn-group">
      <a href="#" class="btn btn-danger">(New) Time Sheets</a>
      <a href="#" class="btn btn-default">Tutor Requests</a>
      <a href="#" class="btn btn-success">Student Requests</a>
    </div>
  </div>
  <div class="row">
    <div class="col-xs-12 btn-group">
      <a href="#" class="btn btn-info">Student baurdian email</a>
      <a href="#" class="btn btn-warning">Tutor email</a>
      <a href="#" class="btn btn-primary">Email history</a>
      <a href="#" class="btn btn-default">New student SMS</a>
      <a href="#" class="btn btn-success">New tutor SMS</a>
      <a href="#" class="btn btn-info">SMS History</a>
    </div>
  </div>
  <div class="row gutter">
    <div class="col-lg-4 col-xs-1">
      <div class="panel panel-primary">
        <div class="panel-heading">
          <h2 class="panel-title">Timesheet Stats</h2>
        </div>
        <div class="panel-body">
          <ul class="list-group">
            <li class="list-group-item">Last timesheet period</li>
            <li class="list-group-item">Last timesheet period Start: 27-07-2015</li>
            <li class="list-group-item">Last timesheet period End: 09-08-2015</li>
            <li class="list-group-item">Last pay period tutor Cost: $ 6,470.00</li>
          </ul>
          <div class="text-right"><a href="#">More details</a></div>
        </div>
      </div>
    </div>
    <div class="col-lg-4 col-xs-1">
      <div class="panel panel-success">
        <div class="panel-heading">
          <h2 class="panel-title">Inactive / Cancelled lessons</h2>
        </div>
        <div class="panel-body">
          <ul class="list-group">
            <li class="list-group-item">Cancelled lesson details</li>
            <li class="list-group-item">Current pay period Start: 27-07-2015</li>
            <li class="list-group-item">Current pay period End: 09-08-2015</li>
            <li class="list-group-item">No. new makeups for pay period: 1</li>
            <li class="list-group-item">Cancellation by students: 6</li>
          </ul>
          <div class="text-right"><a href="#">More details</a></div>
        </div>
      </div>
    </div>
    <div class="col-lg-4 col-xs-1">
      <div class="panel panel-info">
        <div class="panel-heading">
          <h2 class="panel-title">Lessons / Students Stats</h2>
        </div>
        <div class="panel-body">
          <ul class="list-group">
            <li class="list-group-item">Current pay period Start: 27-07-2015</li>
            <li class="list-group-item">Current pay period End: 09-08-2015</li>
            <li class="list-group-item">Todays date: 28-08-2015</li>
            <li class="list-group-item">No. lessons today: 1</li>
          </ul>
          <div class="text-right"><a href="#">Lesson stats</a></div>
          <div class="text-right"><a href="#">Student stats</div>
        </div>
      </div>
    </div>
  </div>
</div>

<script src="http://code.jquery.com/jquery.js"></script>

<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.js"></script>
<script>
</script>
</body>
</html>

Open in new window


You might want to also look at some of the frameworks out there like this one AdminLTE

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jagguyAuthor Commented:
ok thanks for that.
Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.