Welcome Guest, Not a member yet? Register   Sign In
Div and href style (from prev topics client-server)
#1

[eluser]RaiNnTeaRs[/eluser]
.abc
{
background-image:url('http://192.168.1.188/ci2/images/tab1.jpg');
position:relative;
float:left;
height:70;
width:200;
border:1px solid black;
text-align:center;
text-valign:center;
}
After i'm using css style .class:hover to replace the javascript methods onmouseover, and links instead of onmouseclick,
I found this error :
<a href="http://localhost/ci2/index.php/dojang/store" class="abc" id="d1" >STORAGE</a>
A.abc:hover
{
background-image:url('http://localhost/ci2/images/tab2.jpg');
}

my image(tab1.jpg) wont wrap the text ("STORAGE").

btw, im using it ( the anchor ) inside the table .
#2

[eluser]George Ornbo[/eluser]
can you post a link to the template?

adding display:block might work but it is difficult to say without see the code in the context of the rest of the document.
#3

[eluser]GSV Sleeper Service[/eluser]
have you tried adding repeat-x to the css?
#4

[eluser]RaiNnTeaRs[/eluser]
&lt;html&gt;
&lt;head&gt;

<a href="http://localhost/ci2/index.php/dojang/logout" id="l1" style="top:10;left:700">LogOut</a>

&lt;style&gt;


.abc
{
background-image:url('http://localhost/ci2/images/tab1.jpg');
position:relative;
float:left;
height:70;
width:200;
border:1px solid black;
text-align:center;
text-valign:center;
}


&lt;/style&gt;
&lt;title&gt;
SCORPION TAEKWONDO CLUB - NEWS AREA

&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
<center>
<font face="7th Service Expanded Italic" size = "30">Scorpion</font><br>
<font face="3D LET (BRK)" size = "18">NEWS™ </font><br>
</center>
<center>
<table valign="center" >
<tr>
<td>
<a href="http://localhost/ci2/index.php/dojang/store" class="abc" id="d1" >STORAGE</a>
</td>
<td>
<a href="http://localhost/ci2/index.php/dojang/paint" class="abc" id="d2" >PAINT</a>
&lt;style&gt;
A.abc:hover
{
background-image:url('http://localhost/ci2/images/tab2.jpg');
}
&lt;/style&gt;
</td>
<td>
<a href="http://localhost/ci2/index.php/dojang/mall" class="abc" id="d3" >MALL</a>
</td>
<td>
<a href="http://localhost/ci2/index.php/dojang/member" class="abc" id="d4" >MEMBER</a>
</td>
<td>
</td>
<td>
<a href="http://localhost/ci2/index.php/dojang/milis" class="abc" id="d5" >MILIS</a>
</td>
<td>
<a href="http://localhost/ci2/index.php/dojang/forum" class="abc" id="d6" >FORUM</a>
</td>
<td>
</td>
</tr>
</table>
</center>
<hr>
&lt;?php
echo br(3);
echo form_open('dojang/insert_news');

echo "<center>";
echo $this->table->generate($hasil);
echo "</center>";
// echo "<right>";

// echo "</right>";
$pv= $this->session->userdata('level');

if ($pv==100)
{
echo br(4);
echo "<center>";
echo "<table border = 1>";
echo "<tr>";
echo "<td>";
$data2['name']='Isi';
$data2['rows']='4';
$data2['cols']='30';
echo "News : ";
echo "</td>";

echo "<td>";
echo form_textarea($data2);
//echo "&lt;input type = 'text' name = 'Isi'&gt;";
echo "</td>";
echo "</tr>";


echo "</table>";

echo br(2);
?&gt;
&lt;input type= "submit" value = "POST" /&gt;
&lt;?php
echo "</center>";




}
echo br();
echo $this->pagination->create_links();
?&gt;

&lt;/body&gt;

&lt;/html&gt;




Theme © iAndrew 2016 - Forum software by © MyBB