<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[CSS Discuss]]></title>
	<link rel="self" href="http://cssdiscuss.com/feed/atom/"/>
	<updated>2010-06-22T12:38:40Z</updated>
	<generator version="1.3.4">PunBB</generator>
	<id>http://cssdiscuss.com/</id>
		<entry>
			<title type="html"><![CDATA[advice/suggestions for setting up]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/16/advicesuggestions-for-setting-up/new/posts/"/>
			<summary type="html"><![CDATA[<p>Hello - I&#039;ve finally got my self together to have something ready to post!</p><p>I&#039;ve been on the journey from tables to divs and am definitely not looking back! However, when it comes to building a site with some strange alignment and positioning, It becomes a tedious task to be true to my design concepts so I can&#039;t help but think of how &#039;instantly&#039; easy tables were (I realize that I will never ever go back, but the css learning curve can be a sharp one).</p><p>Here&#039;s my design with my guessing where the divs would be set up</p><p><span class="postimg"><img src="http://i44.tinypic.com/20o5cg.jpg" alt="http://i44.tinypic.com/20o5cg.jpg" /></span></p><p>My plan:<br />1.the left and centre divs would have a bkg image where the top-right and bottom-right would just have set bkg-colour<br />2.set background colour= black<br />3.have the vertical text (ie: melissa hubert, click, etc) as images</p><p>Is this realistic and will the design work? The idea is that there is an M and an H that blends with black background. <br />How should I position the 2 divs + top/bottm right divs so it will always be looking like an MH?<br />Would I set up the navigation as if it was any regular horizontal nav bar? </p><p>I appreciate the help/ suggestions! CSS is a tricky one to learn without a teacher. </p><p>Again, Thank you <img src="http://cssdiscuss.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>m</p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/25/</uri>
			</author>
			<updated>2010-06-22T12:38:40Z</updated>
			<id>http://cssdiscuss.com/topic/16/advicesuggestions-for-setting-up/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CSS3 transitions and 2D transforms]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/15/css3-transitions-and-2d-transforms/new/posts/"/>
			<summary type="html"><![CDATA[<p>Good stuff coming from Opera...<br /><a href="http://dev.opera.com/articles/view/css3-transitions-and-2d-transforms/">http://dev.opera.com/articles/view/css3 &#133; ransforms/</a></p><p>Image gallery showcasing this CSS3, you&#039;ll need the 10.5 alpha:<br /><a href="http://devfiles.myopera.com/articles/1041/image-gallery.html">http://devfiles.myopera.com/articles/10 &#133; llery.html</a></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-17T13:54:38Z</updated>
			<id>http://cssdiscuss.com/topic/15/css3-transitions-and-2d-transforms/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Border-radius]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/9/borderradius/new/posts/"/>
			<summary type="html"><![CDATA[<p>W3C has offered some new options for borders in CSS3, of which one is border-radius. Both Mozila/Firefox and Safari 3 have implemented this function, which allows you to create round corners on box-items:</p><p><a href="http://www.css3.info/preview/rounded-border/">http://www.css3.info/preview/rounded-border/</a></p>]]></summary>
			<author>
				<name><![CDATA[pauly d]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-12T04:30:44Z</updated>
			<id>http://cssdiscuss.com/topic/9/borderradius/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CSS3 Preview]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/10/css3-preview/new/posts/"/>
			<summary type="html"><![CDATA[<p>Great preview on what&#039;s available in CSS3:<br /><a href="http://www.css3.info/preview/">http://www.css3.info/preview/</a></p><p>Lately I&#039;ve been implementing RGBA colors (in addition to hex) and am very excited to see their acceptance in the future.<br /><a href="http://www.css3.info/preview/rgba/">http://www.css3.info/preview/rgba/</a></p>]]></summary>
			<author>
				<name><![CDATA[stevenson]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-11T12:28:24Z</updated>
			<id>http://cssdiscuss.com/topic/10/css3-preview/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CSS3 Gradients Generator]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/14/css3-gradients-generator/new/posts/"/>
			<summary type="html"><![CDATA[<p>Great tool for generating -webkit &amp; -moz CSS gradients:</p><p><a href="http://gradients.glrzad.com/">http://gradients.glrzad.com/</a></p><br /><div class="quotebox"><blockquote><p>CSS gradients generate an image result, meaning the result of a CSS gradient can be used anywhere an image can be used, be it a background-image, mask,border, or list item bullet.</p></blockquote></div>]]></summary>
			<author>
				<name><![CDATA[stevenson]]></name>
				<uri>http://cssdiscuss.com/user/5/</uri>
			</author>
			<updated>2010-02-11T12:21:49Z</updated>
			<id>http://cssdiscuss.com/topic/14/css3-gradients-generator/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[BBColors, color schemese for BBedit]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/13/bbcolors-color-schemese-for-bbedit/new/posts/"/>
			<summary type="html"><![CDATA[<p><span class="postimg"><img src="http://ghettocooler.net/img/2009/01/bbcolors-color-schemes2.png" alt="http://ghettocooler.net/img/2009/01/bbcolors-color-schemes2.png" /></span></p><p><strong>U23D, Gentle Honey, Zen and Tea, available as <a href="http://ghettocooler.net/stuff/bbcolors/bbcolors-color-schemes.zip">bbcolors color schemes</a> (.zip)</strong></p><p>Awhile back Daring Fireball created <a href="http://daringfireball.net/projects/bbcolors/">BBColors</a>, a &quot;free command-line tool for saving and loading text color preference schemes for BBEdit and TextWrangler&quot;. I&#039;ve been using it ever since, switching between the available color shemes. A color refresh for your code rejuvinates the soul.</p><p>Occasionally I&#039;ll search the web for new color schemes available for download but have yet to find any, so I created a couple based on color sets from <a href="http://kuler.adobe.com/">kuler.adobe.com</a>, they&#039;re available for download in <a href="http://ghettocooler.net/stuff/bbcolors/bbcolors-color-schemes.zip">bbcolors-color-schemes.zip</a>. I hope other BBColor fans will find them a nice addition to their collection.</p><p>The .zip file contains 3 color themes based on the following Adobe Kuler color sets:<br /></p><ul><li><p><a href="http://kuler.adobe.com/#themeID/336060">U23D</a></p></li><li><p><a href="http://kuler.adobe.com/#themeID/335244">Gentle Honey</a></p></li><li><p><a href="http://kuler.adobe.com/#themeID/337112">Zen and Tea</a></p></li></ul><p>Daring Fireball has <a href="http://daringfireball.net/projects/bbcolors/">instructions on installing and using BBColors</a>. But here&#039;s the jist on getting these new color schemes up and running:</p><ul><li><p>Install <a href="http://daringfireball.net/projects/bbcolors/">BBColors</a></p></li><li><p>unpack <a href="http://ghettocooler.net/stuff/bbcolors/bbcolors-color-schemes.zip">bbcolors-color-schemes.zip</a></p></li><li><p>type &quot;bbcolors -open&quot; in your command line, revealing the location of saved color schemes</p></li><li><p>Drag and drop your new color schemes into the aforementioned directory</p></li><li><p>type bbcolors -load &quot;Name of Theme&quot;</p></li></ul>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-11T11:16:56Z</updated>
			<id>http://cssdiscuss.com/topic/13/bbcolors-color-schemese-for-bbedit/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Basic Rules to follow]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/12/basic-rules-to-follow/new/posts/"/>
			<summary type="html"><![CDATA[<p>You&#039;ll get the best results cross browser &amp; cross platform if you write valid HTML and CSS.<br />You&#039;ll get better answers to your questions if you <strong>validate your code as you develop</strong>. Professionals validate early &amp; often.</p><p>HTML Validator: <a href="http://validator.w3.org/">http://validator.w3.org/</a><br />CSS Validator: <a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-08T23:12:03Z</updated>
			<id>http://cssdiscuss.com/topic/12/basic-rules-to-follow/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Basic Rules to follow]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/11/basic-rules-to-follow/new/posts/"/>
			<summary type="html"><![CDATA[<p>You&#039;ll get the best results cross browser &amp; cross platform if you write valid HTML and CSS.<br />You&#039;ll get better answers to your questions if you <strong>validate your code as you develop</strong>. Professionals validate early &amp; often.</p><p>HTML Validator: <a href="http://validator.w3.org/">http://validator.w3.org/</a><br />CSS Validator: <a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-08T23:10:30Z</updated>
			<id>http://cssdiscuss.com/topic/11/basic-rules-to-follow/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Alpine USA]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/8/alpine-usa/new/posts/"/>
			<summary type="html"><![CDATA[<p><a href="http://alpine-usa.com">http://alpine-usa.com</a></p><p>Likes, dislikes?</p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-08T22:57:52Z</updated>
			<id>http://cssdiscuss.com/topic/8/alpine-usa/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The basics of HTML]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/7/the-basics-of-html/new/posts/"/>
			<summary type="html"><![CDATA[<p>Thinking of getting started? Here&#039;s a fantastic resource we all should be sharing with those just getting started with HTML:</p><p><a href="http://dev.opera.com/articles/view/12-the-basics-of-html/">http://dev.opera.com/articles/view/12-t &#133; s-of-html/</a></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-08T22:56:53Z</updated>
			<id>http://cssdiscuss.com/topic/7/the-basics-of-html/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CSS Basics]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/6/css-basics/new/posts/"/>
			<summary type="html"><![CDATA[<p>Great set of articles from the Opera Developer team:</p><p><a href="http://dev.opera.com/articles/view/27-css-basics/">http://dev.opera.com/articles/view/27-css-basics/</a></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-08T22:54:06Z</updated>
			<id>http://cssdiscuss.com/topic/6/css-basics/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Floatutorial]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/5/floatutorial/new/posts/"/>
			<summary type="html"><![CDATA[<p>By far the BEST tutorial on CSS floats:</p><p><a href="http://www.westvalley.edu/common/tutorial/instruct/cssTutorial/index__1094.htm">http://www.westvalley.edu/common/tutori &#133; __1094.htm</a></p>]]></summary>
			<author>
				<name><![CDATA[r00ts]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-08T22:42:36Z</updated>
			<id>http://cssdiscuss.com/topic/5/floatutorial/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Simple CSS Image Rollovers. Back to the Basics.]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/4/simple-css-image-rollovers-back-to-the-basics/new/posts/"/>
			<summary type="html"><![CDATA[<p>&lt;div&gt;hi&lt;/div&gt;<br />Javascript rollovers?<br />Really?<br />Still?<br />Well, that&#039;s just embarrassing.</p><p>Stop using those archaic Javascript rollovers and switch to a simple, time tested, CSS method.</p><p>For this example, let&#039;s turn a commonly used &quot;Read More&quot; link into a colorfully interactive link of beauty. We&#039;ll get right to it.</p><p>Your HTML:</p><div class="codebox"><pre><code>&lt;a href=&quot;#&quot; class=&quot;read_more&quot;&gt;Read More&lt;/a&gt;</code></pre></div><p>Your CSS:</p><div class="codebox"><pre><code>a.read_more {
  display: block;
  width: 139px;
  height: 22px;
  padding: 4px 0 0 0;
  background: transparent url(read_more.png) no-repeat 0 0;
  text-align: center;
  color: #fff;
  text-decoration: none;
  }
a.read_more:hover {
  background-position: 0 -25px;
  }</code></pre></div><br /><p>Shake some dust out of your yesteryear HTML/CSS and leave that javascript for rollovers behind, once and for all.</p><p>Once you&#039;ve got the basics down, take it to the next step, with &lt;a href=&quot;http://ghettocooler.net/2007/05/31/simple-navigation-with-css-image-replacement/&quot;&gt;Simple Navigation with CSS Image Replacement&lt;/a&gt;.</p><p><strong>Did you find this post helpful?</strong></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-01T12:09:42Z</updated>
			<id>http://cssdiscuss.com/topic/4/simple-css-image-rollovers-back-to-the-basics/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Image Floats, Without the Text Wrap]]></title>
			<link rel="alternate" href="http://cssdiscuss.com/topic/3/image-floats-without-the-text-wrap/new/posts/"/>
			<summary type="html"><![CDATA[<p>How many times do you have an image floated left in a block of content, but want to keep that content from wrapping around your image?&nbsp; </p><p>You&#039;ve tried to accomplish this before, but what you really need is something that plays nicely with any HTML &amp;amp; any amount of content you, or more realistically, your database can throw at it.&nbsp; </p><p>The example below can easily fall apart without the proper CSS in place:<br /><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/example.gif" alt="http://ghettocooler.net/img/floats-no-wrap/example.gif" /></span></p><p>The HTML:</p><div class="codebox"><pre><code>&lt;div class=&quot;callout&quot;&gt;
&lt;h3&gt;team report, replaced image&lt;/h3&gt;
&lt;h2&gt;Team Report 10-06-05&lt;/h2&gt;
&lt;p&gt;Eric Koston and Rick McCrank are still in Toronto, having a killer time filming for the upcoming éS video with filmer Scuba Steve.&lt;/p&gt;
&lt;/div&gt;</code></pre></div><br /><p>And the CSS to get started:</p><div class="codebox"><pre><code>.callout {width: 275px;}
.callout h3 {
  width:115px;
  height:65px;
  float:left;
  text-indent:-8008px;
  background:transparent url(team-report.gif) no-repeat 0 0;
  }</code></pre></div><p>The important part is that you have your &lt;h3&gt; (in this case, an image replacement) floated left.&nbsp; Any html that comes after your &lt;h3&gt; will now wrap around it.&nbsp; Take a paragraph for example:</p><p><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/step-one.gif" alt="http://ghettocooler.net/img/floats-no-wrap/step-one.gif" /></span></p><p>That&#039;s the easy part.&nbsp; Now, how do we keep that paragraph from wrapping?&nbsp; Your first instinct might be to increase the height of .callout h3, we&#039;ve all tried to get away with that method in the past.&nbsp; You&#039;ll tell yourself - the content will never be <em>more</em> than five lines long.&nbsp; Deep down inside - you know this isn&#039;t the case &amp;amp; that you&#039;ll be editing that bit of CSS in the near future.&nbsp; And then a month after that; and then the following month and then... well you&#039;ll be editing that css until the entire site gets redesigned; which you know isn&#039;t happening anytime soon.</p><p>So, we need a future proof method to keep this content tight, the way your pixel princess intended it to be.</p><p>One solution might be to put a width on the paragraph tag and float it right.&nbsp; Let&#039;s try:</p><div class="codebox"><pre><code>.callout p {
  width:160px;
  float:right;
  }</code></pre></div><p>Resulting in:</p><p><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/step-two.gif" alt="http://ghettocooler.net/img/floats-no-wrap/step-two.gif" /></span></p><p>Not a bad start.&nbsp; With this in place, any content in a paragraph tag will never wrap under your image.&nbsp; Unfortunately, chances are this content is variable &amp;amp; is being pulled from a database.&nbsp; Who knows what HTML will be spit out.&nbsp; It&#039;ll fall apart if say, instead of a paragraph, you had an unordered list:</p><p><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/step-three.gif" alt="http://ghettocooler.net/img/floats-no-wrap/step-three.gif" /></span></p><p>This doesn&#039;t quite hold up very well, does it?&nbsp; So let&#039;s change the .callout p { } declaration to .callout * { } instead.&nbsp; The * selector will select P&#039;s, UL&#039;s &amp;amp; any HTML that falls under .callout :</p><div class="codebox"><pre><code>.callout * {
  width:160px;
  float:right;
  }</code></pre></div><p><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/step-four.gif" alt="http://ghettocooler.net/img/floats-no-wrap/step-four.gif" /></span></p><p>Our new declaration solves that quite nicely indeed.&nbsp; There&#039;s just one problem. What if some HTML appears deeper?&nbsp; Take these potential list items for example:</p><ul><li><p>An <a href="http://#">anchor tag</a> perhaps?</p></li><li><p>Or a <strong>strong tag</strong> perhaps?</p></li></ul><p>Some basic HTML, will render as this:</p><p><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/step-five.gif" alt="http://ghettocooler.net/img/floats-no-wrap/step-five.gif" /></span></p><p>This really screws things up. Cleary we only want .callout * { } to apply to parent elements, and not their children, no matter what they are.&nbsp; So let&#039;s overwrite any child&#039;s width &amp; float values with:</p><div class="codebox"><pre><code>.callout * * {
  width:auto;
  float:none;
  }</code></pre></div><p><span class="postimg"><img src="http://ghettocooler.net/img/floats-no-wrap/step-six.gif" alt="http://ghettocooler.net/img/floats-no-wrap/step-six.gif" /></span></p><p>Quite literally, the .callout * * { } declaration says: if <em>any</em> html element contains <em>any</em> HTML element, do { width:auto;float:none;}.</p><p>There it is, exactly what we want &amp; it&#039;ll work in all current browsers (including IE!).&nbsp; Throw any HTML at it, with any varying amount of content &amp;amp; you&#039;ve got some lean &amp; mean &amp; pretty basic CSS to prevent it from wrapping under your floated image.</p><p>Your final css:</p><div class="codebox"><pre><code>.callout {
  float:left;
  width:275px;
  }
.callout h3 {
  width:115px;
  height:65px;
  float:left;
  text-indent:-8008px;
  background:transparent url(team-report.gif) no-repeat 0 0;
  }
.callout * {
  width:160px;
  float:right;
  }
.callout * * {
  width:auto;
  float:none;
  }</code></pre></div><p>View the final HTML: <a href="http://ghettocooler.net/img/floats-no-wrap/">CSS Image floats, no text wrap</a>.</p><p><strong>Did you find this post helpful? Discuss it below. Guest posting is currently enabled.</strong></p>]]></summary>
			<author>
				<name><![CDATA[bkeller]]></name>
				<uri>http://cssdiscuss.com/user/2/</uri>
			</author>
			<updated>2010-02-01T10:15:49Z</updated>
			<id>http://cssdiscuss.com/topic/3/image-floats-without-the-text-wrap/new/posts/</id>
		</entry>
</feed>
