Hallo, Ich schreibe gerade mein eigenes kleines CMS und habe ein problem. Seit dem ich die seite mit div's aufbaue, geht der style-tag in der textarea nichtmehr. Also ich benütze Smarty-Template engine. Hier mal der quellcode vom firefox:
Also die textarea hat die original größe obwohl ich eine andere größe im style-tag angegeben hab, wieso? Habs auch schon mit einer eigenen klasse versucht, ging nicht. Wieso?
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>NubMS • Add article</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="./templates/images/style.css" media="screen" />
<script type="text/javascript" src="./templates/main.js"></script>
</head>
<body>
<div id="wrap">
<div id="header">
<h1><a href="#">NubMS</a></h1>
<h2>Subheader, website description H2</h2>
</div> <div id="content">
<div class="menu">
<div class="menu_head"></div>
<h2>Main</h2>
<ul>
<li><a href="index.php?dshow=news">News</a></li>
<li><a href="index.php?show=1">Lawlz</a></li>
</ul>
<h2>User-Center</h2>
<td width="215" valign="top" bgcolor="#FFFFFF" class="menubox">
<ul id="leftnav">
<li class="test1337">Logged in as: <i>admin</i> <font size="1">(Admin)</font></a>
<li><a class="mainmenu" href="index.php?dshow=profile">Profile</a>
<li><a class="mainmenu" href="admin/">Admin-Panel</a> <li><a class="mainmenu" href="index.php?dshow=logout">Logout</a>
</ul>
</td>
<div class="menu_bottom"></div>
</div> <div class="content">
<h2><a href="#">NubMS <font size="2">>></font> Add article</a></h2>
<div class="articles>
<center><form method="post">
<table align="center" width="350" border="1" cellspacing="0" cellpadding="0">
<tr><td width="48"><b>Title:</b></td><td><input type="text" size="20" value=""
onblur="this.style.borderColor='#FFFFFF', this.style.backgroundColor='#FFFFFF'"
onfocus="this.style.borderColor='#1771AA',this.style.backgroundColor='#F1F1F1'"
name="newstitle"><br></td></tr>
<tr><td colspan="2">
<textarea style="width:500"
onblur="this.style.borderColor='#DBDBDB', this.style.backgroundColor='#FFFFFF'"
onfocus="this.style.borderColor='#1771AA',this.style.backgroundColor='#F1F1F1'"
name="newstext"></textarea><br></td></tr>
<tr><td colspan="2"><center>
<input name="news_write" type="submit" value="Post!"></form>
</center></td></tr></table>
</div> </div>
<div style="clear: both;"> </div>
</div>
<div id="bottom"> </div>
<div id="footer">
Designed by <a href="http://www.free-css-templates.com/">Free CSS Templates</a>, Thanks to <a href="http://www.dubaiapartments.biz/">Dubai Villas</a> and rEakW0n.
</div>