<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - styling ruby text fields etc]]></title>
		<link>http://railsforum.com/viewtopic.php?id=35520</link>
		<description><![CDATA[The most recent posts in styling ruby text fields etc.]]></description>
		<lastBuildDate>Wed, 26 May 2010 23:14:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: styling ruby text fields etc]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=125357#p125357</link>
			<description><![CDATA[<p>Well first of all, calling it box probably doesn&#039;t make much sense to rails. Just use &#039;textarea&#039; since that&#039;s what it is.</p><p>But in all honestly, I wouldn&#039;t even do that. I would just create a new div, put the textarea in that div. This way you can specify where on the page you want it and it&#039;s dimensions. If you&#039;re looking for consistency, definitely set it&#039;s dimensions so the textarea cannot be resized.</p><p>Here is an example of a fixed textarea. It still is set so that it can scroll so you still have infinite lines...<br /></p><div class="codebox"><pre><code>textarea {
    width:300px;
    min-width:300px;
    max-width:300px;
    height:200px;
    min-height:200px;
    max-height:200px;
}</code></pre></div><p>but if you want to put it somewhere on the page and set a border and all that, you should probably create a div, with it&#039;s location, border and any other css. Then create a class, like the code above, and put that specifically to the text area. I would do this so the CSS of the div doesn&#039;t confuse the CSS for the textarea because that&#039;s happened before and textareas are a bitch about dimensions.</p>]]></description>
			<author><![CDATA[dummy@example.com (RailsRhino)]]></author>
			<pubDate>Wed, 26 May 2010 23:14:15 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=125357#p125357</guid>
		</item>
		<item>
			<title><![CDATA[Re: styling ruby text fields etc]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=112533#p112533</link>
			<description><![CDATA[<p>Perhaps there is a margin or padding being inherited from the DOM objects parent. </p><p>If you&#039;re on a Mac get CSSEdit and utilize the X-Ray function. </p><p>If you&#039;re on another machine I believe there is a plug-in called Firebug which does something similar. It allows you to visually see the CSS elements.</p>]]></description>
			<author><![CDATA[dummy@example.com (engineerDave)]]></author>
			<pubDate>Tue, 17 Nov 2009 11:32:48 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=112533#p112533</guid>
		</item>
		<item>
			<title><![CDATA[styling ruby text fields etc]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=112393#p112393</link>
			<description><![CDATA[<p>hi all ,</p><br /><p>i have tried to style a text box with a border in css which ruby created but when i view it the border doesnt seem to line up with the textbox properly as in the textbox is slightly to the right of the border . to me it looks like two seperate boxes</p><p>but i used the id=&quot;box&quot; then created and style in my css file #box { border: 1px solid #999999; }</p><br /><p>any help will be great</p><p>thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (user123)]]></author>
			<pubDate>Sun, 15 Nov 2009 20:19:53 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=112393#p112393</guid>
		</item>
	</channel>
</rss>
