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);
}
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') }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With