<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043701" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043701</link>
    <description></description>
    <language>en</language>
          <item>
    <title>I figured out how to set</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1241827</link>
    <description> &lt;p&gt;I figured out how to set min-width so I got some things figured out but I can&#039;t quite perfect this curved edge div box my client wants. I can&#039;t set the background of the sandwiched div to 100% or it breaks the outer parts of the divs. does that make sense?&lt;/p&gt;
 </description>
     <pubDate>Wed, 20 May 2009 21:06:28 +0000</pubDate>
 <dc:creator>eclypz</dc:creator>
 <guid isPermaLink="false">comment 1241827 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Greg,
Thanks a million for</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1241807</link>
    <description> &lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;Thanks a million for your time and patience on this. &lt;/p&gt;
&lt;p&gt;I have since finished this project and had moved on when the client wanted me to add the navigation to his forum. On top of that he wants it to do special stuff I don&#039;t know if I can do.&lt;/p&gt;
&lt;p&gt;Here&#039;s what I have so far:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.healthandfitnesstalk.com/forum/&quot; title=&quot;http://www.healthandfitnesstalk.com/forum/&quot;&gt;http://www.healthandfitnesstalk.com/forum/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At the top you see my navigation with the yellow buttons and the white box below it.&lt;/p&gt;
&lt;p&gt;My client likes what this is doing, he wanted rounded corners on all the boxes and he wants it to expand and contract with the opening and closing of the window. He wants this because without it the ads will disappear if the user is viewing the site through a small window.&lt;/p&gt;
&lt;p&gt;So I am almost there.&lt;/p&gt;
&lt;p&gt;Actually, everything would be just fine but if you shrink the window you will see how everything comes apart!&lt;/p&gt;
&lt;p&gt;What I&#039;d like for that to be able to do is this&lt;/p&gt;
&lt;p&gt;Expand to 100% but never shrink more than say 60% or 950px.&lt;/p&gt;
&lt;p&gt;Is there a way to do that? Or is there another solution to the way I built this that would remedy the problem?&lt;/p&gt;
&lt;p&gt;Attached the style sheet&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 May 2009 22:44:57 +0000</pubDate>
 <dc:creator>eclypz</dc:creator>
 <guid isPermaLink="false">comment 1241807 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>eclypz wrote:
What program</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1240835</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;eclypz&lt;/em&gt; wrote:&lt;/div&gt;What program did you use to be able to make a duplicate like this?&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I used Firebug (which you are familiar with). It allows you to make changes that change the code right there on the site, when I figured out the issue, I simply clicked on &quot;edit&quot; on the html side and copied all the html, pasted it into my code editor (Bluefish) and added the code as required, the two new divs.&lt;/p&gt;
&lt;p&gt;Then as I could work on the code in my editor, I could simply edit, copy and paste it into Firebug on your site and it would make the changes to the site.&lt;/p&gt;
&lt;p&gt;With the green and red border showing exactly where the two wrapper divs are, I could simply change the width until they fit nicely side by side.&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;To avoid messing up the site while coding, you can do what I did, and edit it through Firebug, although this isn&#039;t ideal, and I only did it as I don&#039;t have access to the real code.&lt;br /&gt;
You can use the code offline if you have a server or LAMP, or a test area of the site.&lt;br /&gt;
If the site has admin logins, add some PHP code to only show code if admin logged in, then only you will see it, or make a new testing directory and password protect it through the account (cpanel/plesk etc)&lt;/p&gt;
&lt;p&gt;Unfortunately there is no way to avoid the PHP code if the files and pages have it in them. You can tread carefully trying not to disturb any of it. But it is likely at some point you will need to know what some of the PHP is doing in order to provide a style or area for the output the PHP is generating etc.&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;eclypz&lt;/em&gt; wrote:&lt;/div&gt; That particular problem, where #adCol has three separate values as you mentioned. Are you saying that when it repeats #adCol several times in the styles it&#039;s just adding more and more attributes? &lt;/div&gt;&lt;br /&gt;
The problem is this: &lt;/p&gt;
&lt;p&gt;Quick answer:&lt;br /&gt;
They are all trying to float next to each other BEFORE the right ad is trying to float next to them&lt;/p&gt;
&lt;p&gt;Longer Answer:&lt;/p&gt;
&lt;p&gt;LEFT AREA&lt;br /&gt;
image_a --&amp;gt; float left&lt;br /&gt;
div_a --&amp;gt; float left&lt;br /&gt;
image_b --&amp;gt; float left&lt;/p&gt;
&lt;p&gt;RIGHT AREA&lt;br /&gt;
advertisement_a --&amp;gt; float left&lt;/p&gt;
&lt;p&gt;Then in the HTML it was calling it like this&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;image_a&amp;gt;&lt;br /&gt;&amp;lt;div_a&amp;gt;&lt;br /&gt;&amp;lt;image_b&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;advertisement_a&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;div_a could&#039;t FIT next to image_a with the float as there wasn&#039;t enough space on the right.&lt;br /&gt;
Same with image_b couldn&#039;t fit next to div_a as there wasn&#039;t enough space on the right.&lt;br /&gt;
There certainly wasn&#039;t enough space on the right for ALL THREE to float next to each other.&lt;/p&gt;
&lt;p&gt;Do you see now?&lt;br /&gt;
So div_a was trying to float next to image_a, and image_b was trying to float next to div_a.&lt;br /&gt;
So by the time advertisement_a was being called in the HTML, all the other things trying to float next to each other had pushed the advertisement down to the bottom as the space on the right hand side wasn&#039;t enough.&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;I know you are probably trying to get a quick fix, aren&#039;t we all if possible, but I think in this case you are going to have to spend a few hours raking through the code learning it a bit more and tidying it up.&lt;br /&gt;
The CSS and HTML isn&#039;t &#039;too bad&#039;, but it is a little messy, especially the CSS.&lt;/p&gt;
&lt;p&gt;The rounded corners stuff. They are in a wrapper div floated left, so you don&#039;t need to worry about their position on the &quot;full page&quot;, so now you deal with the rounded and other stuff within the floated wrapper div.&lt;/p&gt;
&lt;p&gt;There are a few ways to accomplish this, usually the same outcomes, although as with most options preference depends on circumstance.&lt;/p&gt;
&lt;p&gt;You can either make another wrapper div inside the floated one to wrap the top_rounded_img, content and then bottom_rounded_img all together.&lt;br /&gt;
Make the new internal wrap div the width of the top/bottom rounded images, that will then contain the top and bottom images and the content all at the same width.&lt;/p&gt;
&lt;p&gt;You can of course add more divs as you need them.&lt;br /&gt;
For example to make some styling, border, padding or whatever on the content area in between the top_round and bottom_round images.&lt;br /&gt;
So after the round_top_img, a new div to contain the content, setting widths, margins and padding etc as required.&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;Another way is to make three divs, each for the top and bottom round images and the content, and in the CSS something like:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#top_round_img_div{&lt;br /&gt;width: size_of_image in px;&lt;br /&gt;background: url(top_round_img.png);&lt;br /&gt;margin: 0px auto 0px auto;&lt;br /&gt;}&lt;br /&gt;#inner_left_content_div{&lt;br /&gt;width: size_of_image in px;&lt;br /&gt;margin: 0px auto 0px auto;&lt;br /&gt;}&lt;br /&gt;#bottom_round_img_div{&lt;br /&gt;width: size_of_image in px;&lt;br /&gt;background: url(bottom_round_img.png);&lt;br /&gt;margin: 0px auto 0px auto;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The key and trick is to have the widths all the same, and the alignment all the same on all three, so they stack one on top of each other aligned in the same place.&lt;br /&gt;
You don&#039;t need to auto align the left/right margins, you can assign a specific left margin, as long as they all get the same alignment they will line up together.&lt;br /&gt;
EG for all three divs:&lt;br /&gt;
margin: 0px 0px 0px 30px;&amp;lt;-- left margin same for all three&lt;/p&gt;
&lt;p&gt;Remember borders can make positions appear different to one of the other three. So if you have a border on the content div, but not on the top and bottom imgs, you might need to remove a few px from the width of the content div to make it line up neatly with the top and bottom imgs again.&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;Using borders, like I did with the 2px red and green on all divs while you are developing helps you know where stuff is going. Then once everything is aligned as it should be, and you have checked it in IE and other browsers and fought for a while to make it work in all of them, simply remove the red, green, purple, blue borders around everything.&lt;/p&gt;
&lt;p&gt;I do this often, as I tend to have numerous divs inside each other and I find it makes it easer. It also helps you picture the layout and what each div is doing in your mind, making it easier and also helping next time you design a layout - you know pretty much what things are going to do.&lt;/p&gt;
&lt;p&gt;And as always - practice makes better (not perfect though, that&#039;s just never true &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;)&lt;/p&gt;
&lt;p&gt;___________________________&lt;/p&gt;
&lt;p&gt;Again, method depends on requirements.&lt;br /&gt;
I feel your pain going through someone else&#039;s code when it&#039;s cluttered and bloated. I think most of us have been there at some point. And while it can be hard just figuring out someone else&#039;s code when it&#039;s well organised and well written, when it doesn&#039;t work and is messy, it&#039;s even harder.&lt;/p&gt;
&lt;p&gt;Therefore sometimes it&#039;s easier just to rip it out and start again.&lt;br /&gt;
Not all of it, but in this case, if it was me and the original coder wasn&#039;t on the scene still, I&#039;d get rid of all the styling that positions the left and right areas and start from fresh.&lt;/p&gt;
&lt;p&gt;Make the main_left_wrap and main_right_wrap both float left. Then work on the styling of the contents inside them, like the top and bottom rounded images and the content in between them.&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 23:14:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1240835 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Ok so I made the changes and</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1240822</link>
    <description> &lt;p&gt;Ok so I made the changes and I have to say: I swear I already tried to make two divs and float them left!&lt;/p&gt;
&lt;p&gt;I think there&#039;s something to the sizes you gave those divs. How did you know what size to give them?&lt;/p&gt;
&lt;p&gt;Also, when I took all the floats off the stuff inside the rounded corner stuff, all the parts fell apart and were stuck at the top of the div, does that make sense? Is there a better way to make boxes like that?&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 14:15:15 +0000</pubDate>
 <dc:creator>eclypz</dc:creator>
 <guid isPermaLink="false">comment 1240822 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Greg,
two quick</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1240821</link>
    <description> &lt;p&gt;Greg,&lt;/p&gt;
&lt;p&gt;two quick questions:&lt;/p&gt;
&lt;p&gt;1) What program did you use to be able to make a duplicate like this?&lt;/p&gt;
&lt;p&gt;I wanted to be able to work on this site without messing up the actual content but with all the php includes I was afraid I&#039;d end up with scripting that wouldn&#039;t work in isolation. Does my question make sense?&lt;/p&gt;
&lt;p&gt;2) That particular problem, where #adCol has three separate values as you mentioned. That wasn&#039;t my doing. That was there when I got here. Are you saying that when it repeats #adCol several times in the styles it&#039;s just adding more and more attributes? I didn&#039;t know if that was the case or if it meant something like this: Whenever there is an adCol make it look like this, BUT if there is an adCol in the navigation, then make it look like this.&lt;/p&gt;
&lt;p&gt;Does that make sense? I couldn&#039;t tell if it was some kind of legitimate css tactic that made several different kinds of adCol options depending on where it was buried. That shows my little knowledge of the subject and I can only thank you for your time helping me out here.&lt;/p&gt;
&lt;p&gt;I&#039;m a graphic designer by trade and usually just make stuff look cool but now I&#039;m trying to expand my capabilities and this site is helping already!&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 14:01:31 +0000</pubDate>
 <dc:creator>eclypz</dc:creator>
 <guid isPermaLink="false">comment 1240821 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Greg, Thank you so much for</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1240820</link>
    <description> &lt;p&gt;Greg, Thank you so much for your response.&lt;/p&gt;
&lt;p&gt;I want to clarify something before we go any further. I DID NOT make this CSS. It was handed over to me (I know, someone else&#039;s dirty laundry!) and I&#039;m trying to do things the other guy &quot;couldn&#039;t do&quot; and now I see why! &lt;/p&gt;
&lt;p&gt;sounds like I&#039;m making excuses and I kinda am, but I told the client in the future to just give me a straightup fresh template before I do this work again.&lt;/p&gt;
&lt;p&gt;But you&#039;re right, that little rounded corner mess IS mine. I added floats everywhere in some sad attempt to try anything possible to make this work. I spent five hours yesterday trying to get one div to go over ot the right. It&#039;s maddening...&lt;/p&gt;
&lt;p&gt;Thanks for your html!&lt;/p&gt;
&lt;p&gt;I&#039;ll respond later with feedback!&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 13:55:43 +0000</pubDate>
 <dc:creator>eclypz</dc:creator>
 <guid isPermaLink="false">comment 1240820 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>One thing I see straight</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/trouble-css-0#comment-1240805</link>
    <description> &lt;p&gt;One thing I see straight away is you duplicating stuff in CSS classes.&lt;/p&gt;
&lt;p&gt;In your style.css:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;.adCol {&lt;br /&gt;float: left;&lt;br /&gt;margin:1px;&lt;br /&gt;width:281px;&lt;br /&gt;text-align:center;&lt;br /&gt;}&lt;br /&gt;.adCol .ad {&lt;br /&gt;margin-bottom: 10px;&lt;br /&gt;}	&lt;br /&gt;.adCol .sideAd {&lt;br /&gt;width: 250px;&lt;br /&gt;height: 400px;&lt;br /&gt;margin: 10px 0px 10px 17px;&lt;br /&gt;text-align:center;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;So on the adCol class you assign a &lt;code&gt;margin:1px;&lt;/code&gt; then &lt;code&gt;margin-bottom: 10px;&lt;/code&gt; and then &lt;code&gt;margin: 10px 0px 10px 17px;&lt;/code&gt;&lt;br /&gt;
Still with adCol you also assign &lt;code&gt;width:281px;&lt;/code&gt; then &lt;code&gt;width: 250px;&lt;/code&gt;&lt;br /&gt;
There are others, but the site has so much CSS I didn&#039;t dare look at it all.&lt;/p&gt;
&lt;p&gt;Have a look at the W3C Validator for a start and try to fix the errors it states for your CSS&lt;br /&gt;
&lt;a href=&quot;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.steroidology.com%2Fblog%2Fwp-content%2Fthemes%2Fgrid_focus_public%2Fstyle.css&quot; title=&quot;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.steroidology.com%2Fblog%2Fwp-content%2Fthemes%2Fgrid_focus_public%2Fstyle.css&quot;&gt;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.steroi...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Your XHTML has 73 errors too, although a lot of them are not major issues that could affect functionality, although it doesn&#039;t hurt to clear up the ones that don&#039;t break your code.&lt;br /&gt;
Such as the alt tags in images, that is a good thing to do anyway, as it can be additional content for Google and alike (arguable).&lt;/p&gt;
&lt;p&gt;But the main issue as I see it is the fact you have different things on the left hand side floated left.&lt;br /&gt;
For example,&lt;br /&gt;
&lt;code&gt;.rounded-homebodyBottom .rounded-homebodyBody&lt;/code&gt; and &lt;code&gt;.rounded-homebodyTop&lt;/code&gt;&lt;br /&gt;
I tend to wrap all the left hand side things in one div and float that div left, then all the right hand side things in one div and float that left.&lt;br /&gt;
So you have two wrapper divs floated next to each other and everything inside them without floats required.&lt;br /&gt;
In fact, I did just that on your site and removed all the floats from the above mentioned three things and it was fine.&lt;/p&gt;
&lt;p&gt;I&#039;ve attached a HTML file that is basically your code with the two new divs floated. I used inline style and green and red borders so you can see what&#039;s happening. I also put a huge amount of white space around the two new divs I made so you can find them.&lt;/p&gt;
&lt;p&gt;I didn&#039;t however try it in any browser other than FF. And as there is a LOT of HTML and CSS code, it might not be perfect or usable as is, so just use it as a guide.&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 08:25:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1240805 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
