• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
images problem

#1
[eluser]Unknown[/eluser]
my view contain some images
on I load it on the controller the images is hidden and the view style is not included
the images path is correct but is hidden
please! help me

#2
[eluser]InsiteFX[/eluser]
Show your view code and please use code tags!

#3
[eluser]Unknown[/eluser]
Code:
<html>
<head>
  <link href="<?php echo base_url('style/css/template.css');?>" type="text/css" rel="stylesheet" media="screen" />
</head>

<body>
  <div class="main">
   <div class="center1">
    <div class="smm">
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/g.png');?&gt;" alt="img" /></a>
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/t.png');?&gt;" alt="img" /></a>
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/f.png');?&gt;" alt="img" /></a>
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/r.png');?&gt;" alt="img" /></a>
   </div>
  
  </div>
&lt;/body&gt;
&lt;/html&gt;

#4
[eluser]InsiteFX[/eluser]
Where is your html !DOCTYPE?

If your images still do not show check your base_url
Code:
<!DOCTYPE html>
&lt;html&gt;
&lt;head&gt;
  &lt;link href="&lt;?php echo base_url('style/css/template.css');?&gt;" type="text/css" rel="stylesheet" media="screen" /&gt;
&lt;/head&gt;

&lt;body&gt;
  <div class="main">
   <div class="center1">
    <div class="smm">
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/g.png');?&gt;" alt="img" /></a>
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/t.png');?&gt;" alt="img" /></a>
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/f.png');?&gt;" alt="img" /></a>
     <a target="_blank" href=""><img src="&lt;? echo base_url('style/img/r.png');?&gt;" alt="img" /></a>
   </div>
  
  </div>
&lt;/body&gt;
&lt;/html&gt;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.