Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rpgfan3233

    Loop and return?

    Wouldn't it actually be eachPicture += '<img src=\='i + '.gif\=>'; ?? Otherwise, it'll think you are nesting quotations marks, if I'm thinking correctly. . .
  2. rpgfan3233

    Styles not applying?

    The term "class" refers to the HTML class: <DIV ID="FirstItemBox" CLASS="MyItemBox"> The STYLE attribute is used in the same way the <STYLE> tag is used: <DIV ID="FirstItemBox" STYLE="background-color:#ff0;">
  3. rpgfan3233

    CSS deemed incomplete without bacground-color?

    I found a fix for it (though it isn't exactly appealing): background-color: inherit /* when setting 'color', but not 'background-color' */ color: inherit /* when setting 'background-color', but not 'color' */
  4. rpgfan3233

    Changing cursor with CSS in anchor tag

    Here's a good way: a:hover { cursor: help; } .......... <a href="javascript:void(0);" onclick="this.blur();">Anchor content</a>
  5. rpgfan3233

    JS call from CSS - ?

    Not possible by the W3C CSS standard. Microsoft provides a proprietary expression() function as an extension to CSS. It is most commonly used to make IE conform to the rest of the browser's implementations. Here's a recent use I found for it: #foo:empty { display: none; } #foo { display...
  6. rpgfan3233

    CSS deemed incomplete without bacground-color?

    This is one of the updates to the previous version of the CSS validator, I think. It's just a recommendation that if you change the color of your text, you should also change the background. Here is an example of why: <div style="background-color: black"> <span style="color: black">This will...
  7. rpgfan3233

    Change submit button to rollover using css

    You might try http://wellstyled.com/css-nopreload-rollovers.html That is one of the best ideas you could possibly use. Take note of the problem/update at the bottom of that page.
  8. rpgfan3233

    webpage not validating properly...

    The trailing slash, or "/", for empty elements is not valid for HTML according to the W3C validator. However, it gets you into the habit, so migrating XHTML (when necessary) is less of a pain. Here's a rule I tend to follow: - when using colors for the BODY, set them for the HTML element too...
  9. rpgfan3233

    Page Keeps Refreshing for No Reason

    There's no HTTP redirect or any META refresh?
  10. rpgfan3233

    webpage not validating properly...

    That depends on how adamant you are regarding future compatibility with browsers that will inevitably be upgraded. HTML will probably be around for at least another decade. XHTML and CSS are here to stay, though they will change drastically (take a look at the XHTML2 and CSS3 stuff that are in...
  11. rpgfan3233

    Internet Explorer not honouring &quot;clear&quot; style on list items

    a) I'm not sure. b) div#myList ul { margin: 0px; padding: 0px; list-style-type: none; clear: left; } div#myList ul li { margin: 0px; padding: 0px; } div#myList ul li.cell {...
  12. rpgfan3233

    Stuctural Pseudo-Classes (:empty)

    ...in there should help fix that in IE. I never would have thought about using :empty with borders. Anyway, here are the entries I had: h3:empty { /* for browsers that understand this */ display: none; /* hide the element if there is no content */ } h3 { display...
  13. rpgfan3233

    Stuctural Pseudo-Classes (:empty)

    AFAIK, that's a CSS3 pseudo-class only. Also, 'visibility' only hides the content, not the space it takes up. 'display' hides the space too. :-) This is for Internet Explorer: h3 { display: expression(this.innerHTML.length > 0 ? 'block' : 'none'); } Basically, if there is content, there should...
  14. rpgfan3233

    Headless style blocks - an observation

    According to the specs, . . . . . . <script> blocks are valid in the body of a document. . . . <style> is not valid in the body of a document.
  15. rpgfan3233

    Apply Margins Making Text Not Wrap

    It's not valid CSS. Try typing it into the CSS Validator textarea. :-)
  16. rpgfan3233

    webpage not validating properly...

    It's only an issue if your custom elements and attributes don't work the way they're supposed to work. Also, the <script language="JavaScript"> should be <script type="text/javascript">. All elements and attributes in XHTML are lowercase. You have "onChange" and "onKeyUp" events when they...
  17. rpgfan3233

    Text with rollover

    LOL And here I was thinking that something complicated was needed: CSS- div.rollover a { color: #000; text-decoration: none; cursor: text; /* use the i-beam when the link is hovered over */ } div.rollover a:hover { color: #fff; background-color: #000; } X/HTML- <div class="rollover"> <!--...
  18. rpgfan3233

    Is there an &quot;ignore HTML&quot; tag in HTML? (like &lt;PRE&gt;)

    I agree. IMHO, <tt> should be deprecated. The idea is to create teletype or monospaced text. It could easily be done with CSS. I think the readonly textarea is a great solution. However, you could also take the contents that should be left alone and copy-paste into a blank document. (It might...
  19. rpgfan3233

    File extension .htm or .html?

    There is no problem with interchanging .htm and .html. They should both render the same in any browser, whether the file extension is changed or not (though this isn't the case for XHTML files in browsers that use the .xhtml or one of the many other extensions to recognize the media-type...
  20. rpgfan3233

    The move to XHTML

    If you have server-side capabilities (ASP, PHP, etc.), you might look for a script that changes everything from XHTML to HTML or HTML to XHTML depending on whether the application/xhtml+xml media-type is recognized by the browser. An alternative is to use application/xml rather than...

Part and Inventory Search

Back
Top