<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037668" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037668</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216099</link>
    <description> &lt;p&gt;Well, I&#039;m glad we&#039;re on the same page here, I was planning to explain it further anyway, just haven&#039;t got the time to look into it, so the fastest way I know I put in first... so on and so forth.... I know your not ADD, it&#039;s an expression! We also have ADHD but what I have now is RSI...&lt;/p&gt;
 </description>
     <pubDate>Sat, 03 Mar 2007 22:45:36 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1216099 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216093</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;demonhale;216034 wrote:&lt;/strong&gt; @ Renegade: Well thats why where having this discussion right? so that we can see the issues solved by semantic markup... But don&#039;t say however that although it&#039;s a quick fix it&#039;s totally wrong, he may not have the use for a header call, if he only needs to use the same solution to an area that doesn&#039;t have to be semantically right. &lt;/p&gt;
&lt;p&gt;What&#039;s wrong however is the theory of assuming that getting the semantic right as a solution is a far longer thing to expound on, none of us really is ADD over this stuff... I do think however that Monkeyboy gives this thread a much deserving continuance to further the knowledge of those reading the posts. However side comments doesn&#039;t...&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;No where in my post did I say that the solution you gave is wrong. All I&#039;m saying is to expand on your solution and offer a symantic solution [as well]. For the record, I&#039;m not &quot;ADD over this stuff&quot;.&lt;/p&gt;
 </description>
     <pubDate>Sat, 03 Mar 2007 22:06:42 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1216093 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216076</link>
    <description> &lt;p&gt;Yes I agree, using reset margins and paddings make it less difficult to positioning other elements in the long run...  If you need more information on CSS you can check out ALA, &lt;a href=&quot;http://alistapart.com/&quot; class=&quot;bb-url&quot;&gt;http://alistapart.com/&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 03 Mar 2007 06:56:15 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1216076 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216039</link>
    <description> &lt;p&gt;That&#039;s some good info demonhale, thanks for clearing that up. &lt;/p&gt;
&lt;p&gt;I&#039;ve always used the following css to reset default margins and padding to &#039;0&#039; (this helps uniform how explorer and opera treat elements) and then relied totally upon margins/padding to position elements and divs.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;* {&lt;br /&gt;margin: 0;&lt;br /&gt;padding: 0;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Now this works (like I said earlier it requires a bit of fudging with a mix of paddings and margins) but for me anyway, produces an unstable layout. It&#039;ll look fine on all browsers but then later on I might say, decide to shift a list over a little and next thing I know, my divs are re-aligning - cue more fudging.&lt;/p&gt;
&lt;p&gt;I&#039;ve got a new website I&#039;ve just started on so this will be a good chance to try out the position attribute before rushing in and destroying my existing ones lol.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Mar 2007 09:16:55 +0000</pubDate>
 <dc:creator>Monkeyboy</dc:creator>
 <guid isPermaLink="false">comment 1216039 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216034</link>
    <description> &lt;p&gt;@ Renegade: Well thats why where having this discussion right? so that we can see the issues solved by semantic markup... But don&#039;t say however that although it&#039;s a quick fix it&#039;s totally wrong, he may not have the use for a header call, if he only needs to use the same solution to an area that doesn&#039;t have to be semantically right. &lt;/p&gt;
&lt;p&gt;What&#039;s wrong however is the theory of assuming that getting the semantic right as a solution is a far longer thing to expound on, none of us really is ADD over this stuff... I do think however that Monkeyboy gives this thread a much deserving continuance to further the knowledge of those reading the posts. However side comments doesn&#039;t...&lt;/p&gt;
&lt;p&gt;Let me get on to Monkeyboy and My little chat.&lt;/p&gt;
&lt;p&gt;@Monkeyboy&lt;br /&gt;
1st question, yes its the whole box issue, definitely hit the nail on the head there, that&#039;s why when defining margins and paddings on element we should be careful...&lt;/p&gt;
&lt;p&gt;2nd absolute is relative to the parent div, that&#039;s why the solution worked... Improperly nested elements however sometimes cause the absolute positions to go haywire, that&#039;s why most markup employ the use of a container div to control this property.&lt;/p&gt;
&lt;p&gt;To those Learning, Here is the semantic solution, the markup must be semantic first (although it isn&#039;t the problem) and then you apply css styling like so:&lt;br /&gt;
Proper Markup:&lt;/p&gt;
&lt;p&gt;html:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;pixelxs.com&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
.&lt;br /&gt;
.&lt;/p&gt;
&lt;p&gt;Proper CSS&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;h1 {&lt;br /&gt;position:absolute; &lt;br /&gt;text-transform: lowercase;&lt;br /&gt;text-align:left;&lt;br /&gt;text-spacing:-2px;&lt;br /&gt;font-size:11px;&lt;br /&gt;line-height:inherit;&lt;br /&gt;color: #fff;&lt;br /&gt;font-family: verdana;&lt;br /&gt;font-weight: normal;&lt;br /&gt;margin:0px;&lt;br /&gt;padding:0px;&lt;br /&gt;bottom:0px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.head {&lt;br /&gt;position:relative;&lt;br /&gt;width:99%;&lt;br /&gt;display:block;&lt;br /&gt;background-color: #454545;&lt;br /&gt;background-image: url(&amp;#039;head.jpg&amp;#039;);&lt;br /&gt;background-repeat: repeat-x;&lt;br /&gt;border:1px;&lt;br /&gt;border-style:solid;&lt;br /&gt;border-color:#999999;&lt;br /&gt;height: 18px;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Happy Learning!&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Mar 2007 03:22:48 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1216034 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216030</link>
    <description> &lt;p&gt;Why would you want to make it a two step problem? Why not explain the semantics of his issue then attempt to solve it (semantically) rather than just a quick fix?&lt;/p&gt;
&lt;p&gt;See, if you just offer a person asking for help a &quot;quick fix&quot; then they go away thinking and doing what they have always done. Try expanding on what the person asking for help is doing and possibly help him/her in the &quot;right direction&quot; instead?&lt;/p&gt;
&lt;p&gt;Sure, both solutions are correct however, explaining a little more won&#039;t hurt either. Don&#039;t just help someone, have them understand.&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Mar 2007 00:16:16 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1216030 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216008</link>
    <description> &lt;p&gt;Ah ok, I don&#039;t have time at the mo to try that as I&#039;m at work but I think I know what you mean. This is something to do with the whole padding/margin issue between browsers. Like Explorer gives a default 8px margin, whilst opera uses an 8px padding right?&lt;/p&gt;
&lt;p&gt;That&#039;s useful to know though. I&#039;ve always used that method and yeah, have had to fudge it about a bit until things work on all browsers (I always test with IE, FF and Opera). I&#039;ve never used the &#039;position&#039; attribute although I&#039;ve read a bit about how the whole absolute/relative thing works.&lt;/p&gt;
&lt;p&gt;At the risk of digressing too much from the topic of this thread, is &#039;position: absolute&#039; relative to the parent div or the page as a whole?&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Mar 2007 13:18:59 +0000</pubDate>
 <dc:creator>Monkeyboy</dc:creator>
 <guid isPermaLink="false">comment 1216008 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216005</link>
    <description> &lt;p&gt;You could do that, but it lengthens the code and is not cross-browser friendly... See adding specified margins to a container area inside another container complicates alignment, rather than actually aligning it bottom, which is your main course of action anyway. Thus complicating things when adding more elements... &lt;/p&gt;
&lt;p&gt;Try your code on FF and compare it with IE...&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Mar 2007 12:04:10 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1216005 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216003</link>
    <description> &lt;p&gt;Oh yeah totally, I&#039;m not saying just add in header tags, what I was inquiring was really that it was possible to use header tags instead of a div which is what I would have done myself. There would obviously need to be some formatting applied to said header tags as you&#039;ve noted. &lt;/p&gt;
&lt;p&gt;Guess I was really just asking another question rather than offering a solution which probably isn&#039;t that constructive but wanted to make sure the way I would have done it was correct as well.&lt;/p&gt;
&lt;p&gt;On that note, could you position the text with margins? i.e.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;.head {&lt;br /&gt;position:relative;&lt;br /&gt;width:99%;&lt;br /&gt;display:block;&lt;br /&gt;background-color: #454545;&lt;br /&gt;background-image: url(&amp;#039;head.jpg&amp;#039;);&lt;br /&gt;background-repeat: repeat-x;&lt;br /&gt;border:1px;&lt;br /&gt;border-style:solid;&lt;br /&gt;border-color:#999999;&lt;br /&gt;height: 18px;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;.headtext {&lt;br /&gt;text-transform: lowercase;&lt;br /&gt;text-align:left;&lt;br /&gt;color: #FFFFFF;&lt;br /&gt;line-height:inherit;&lt;br /&gt;text-spacing:-2px;&lt;br /&gt;font-size:11px;&lt;br /&gt;font-family: verdana;&lt;br /&gt;font-weight: normal;&lt;br /&gt;&amp;lt;strong&amp;gt;margin-top: 5px;&amp;lt;/strong&amp;gt;&lt;br /&gt;&amp;lt;strong&amp;gt;margin-left: 3px;&amp;lt;/strong&amp;gt;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;In other words keep the background formatting in the  add the text formatting to the ,  then use margins to position the text within the div. Or would it not work that way?&lt;/p&gt;
&lt;p&gt;(I&#039;ve only estimated those margins)&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Mar 2007 11:16:31 +0000</pubDate>
 <dc:creator>Monkeyboy</dc:creator>
 <guid isPermaLink="false">comment 1216003 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-problem#comment-1216002</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Monkeyboy;215999 wrote:&lt;/strong&gt; Ahhhh but using header tags would solve the problem still. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve always used header tags so your two div suggestion made me a little concerned about the way I do things (I&#039;m still learning html), hence the question not a statement. It&#039;s all good, as long as I wasn&#039;t wrong it&#039;s encouraging &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;/blockquote&gt;
&lt;p&gt;It won&#039;t really solve the problem unless you get the properties correct, that means if the original problem was semantically correct, it would still be solved by the solutions written above, adding an &quot;h1&quot; tag or any other header tag may not solve the problem without the property as written above...&lt;/p&gt;
&lt;p&gt;I love to talk so excuse me if this is a stretch:&lt;/p&gt;
&lt;p&gt;Example if pixelxs originally coded the html semantically as:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;h1&amp;gt;&lt;br /&gt;pixelxs.com&lt;br /&gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;The alignment problem will still be there unless you give the property to h1 and recode his first header css class inside h1, to fix it bottom left... Same process, different approach... &lt;/p&gt;
&lt;p&gt;Now try and solve the original problem with the original css without my edit and add your h1 tags there and see if it gets fixed...&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Mar 2007 10:01:31 +0000</pubDate>
 <dc:creator>demonhale</dc:creator>
 <guid isPermaLink="false">comment 1216002 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
