Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4 css & javascript link using {{ HTML}}

I am beginner in Laravel 4 and I have include css file using HTML class but it's not working so please help me. My code is :-

In view :- model_window.php

<?php HTML::style('css/style.css'); ?>

<a href="#openModal"><input  type="submit" value="show" name=""show_button></a>

<div id="openModal" class="modalDialog">
   <div>
      <a href="#close" title="Close" class="close">X</a>
      <h2>Modal Box</h2>

   </div>
</div>

my css file :- in public -> css -> style.css

.modalDialog:target {
                  opacity:1;
                  pointer-events: auto;
                   }

     .modalDialog > div {
                width: 400px;
                position: relative;
                margin: 10% auto;
                padding: 5px 20px 13px 20px;
                border-radius: 10px;
                background: #fff;
                background: -moz-linear-gradient(#fff, #999);
                background: -webkit-linear-gradient(#fff, #999);
                background: -o-linear-gradient(#fff, #999);
                 }
like image 440
vikaskimt Avatar asked Feb 26 '26 07:02

vikaskimt


1 Answers

you can rename your file to such as index.blade.php second of that must be have blade and you can simply use:

    {{ HTML::style('public/css/index.css') }}
    {{ HTML::script('public/js/jquery.pnotify.min.js') }}
like image 160
DolDurma Avatar answered Mar 01 '26 09:03

DolDurma