Everything posted by vlyk
-
Basic html/css question
note: i've just implemented the doctype in my scripts and you are right! The :hovers are now working even on my divs i guess that the browser was guessing too much All my scripts are now working thnx for the help and hints!
-
Basic html/css question
i've fixed the table error but now iexplore is yet again doing its buggy things i have this script all css properties are the same except for the following: - The img has a border of 1px around it - sep property negligible .right { color: #BEBEBE; width: 500px; float: right; border-left: 3px solid #B2D3E4; padding: 5px; } .right:hover { border-left: 3px solid #539BC4; color: #828282; } .mailbox { font-size: 10px; width: 180px; border: 1px solid #BB0000; padding: 5px; } .mailbox:hover { border: 1px solid #EE0000; } .mailbox input[type=text] { font-size: 10px; background: #F5F9FB; width: 180px; border: 1px solid #B2D3E4; color: #B2D3E4; } .mailbox input[type=text]:hover, .mailbox input[type=text]:focus { border: 1px solid #539BC4; color: #539BC4; } .mailbox input[type=submit] { font-size: 10px; background: #F5F9FB; border: 1px solid #B2D3E4; color: #B2D3E4; margin-top: 5px; margin-left: 110px; } .mailbox input[type=submit]:hover { border: 1px solid #539BC4; color: #539BC4; } ... <div class="content"> ... (some text + seps~divs with fixed widths and heights to display a line) <div class="left"> (an image with fixed width and height) <div class="mailbox"> (contains a form to register in a mailbox) </div> </div> <div class="right"> (some text) </div> </div> <div class="footer"> ... (some text) </div> ... whats wrong is that the browser displays the page CORRECTLY but after a few seconds the content is like cut/ its height is reduced. The img is cut while the mailbox div is hidden completely however the footer is refitted to the new height of the content showing that it is the content which is collapsing Btw iexplore doesn't support the custom css of the input except if i place a class in the input and add a .class in the css to match it, is there any other way around this?
-
Basic html/css question
omg thnx so much (actually i've wasted more than 2 weeks on that script and have registered on many other forums) i believed that the align property was to align the text but it aligns the table u've solved my problem i believe i'll stay on this forum cuz its quite lively and have experienced users xD btw if you have type plz explain what exactly are the doctype and metadata(this one is for searches right?) for?
-
Basic html/css question
unfortunately this doesn't work... heres a piece of my code appropriate script types etc .content { text-align: left; background: #EBF4F8; width: 720px; min-height: 600px; margin: 5px; padding: 10px; border: 1px solid #B2D3E4; } table { font-size: 12px; margin: 15px 0px 5px 0px; border: 0px; } td { border: 1px solid #B2D3E4; color: #BEBEBE; text-align: center; } table:hover td { border: 1px solid #539BC4; color: #828282; } .title { width: 170px; font-size: 14px; color: #B2D3E4; border-bottom: 2px solid #B2D3E4; margin: 15px 0px 5px 15px; text-indent: 10px; cursor: pointer; } .title:hover { color: #539BC4; border-bottom: 2px solid #539BC4; text-indent: 15px; } ... <div class="content"> <div class="title">Item 1</div> <table border="0px" width="100%" align="left" valign="top" cellspacing="5px" cellpadding="0px"> ... (note there are 7 rows with no specified height and 10 columns with 10% each) </table> (another table same format) <div class="title">Item 2</div> <yet another table) </div> ... the tables are one on top of the other when in google or firefox(note the :hover don't work in iexplore and firefox) but the tables are next to each other(enlarging or outside the content) i don't understand why its behaving like this since as my code is the same as yours(the code for the tables) yes the titles have some sort of animation since i use a javascript with them to "toogle the visibility" of the tables(not included here)
-
Basic html/css question
thnx however you misunderstood the table part xD I need 2 tables which are 1 on top of the other however only chrome is allowing me to do so while iexplore, firefox and opera are either enlarging the content or making the 2nd table appear outside the content do you know some other way of showing tabular data without using tables?
-
Basic html/css question
Can someone plz show me or direct me to some tutorial in order to learn how to make fixed width pages and designs which appear exactly the same in all major browsers Note: i've tried to do it by myself using the width, max-width and also the min-height properties in order to make the layout static(except the height) but have failed miserably Btw with fixed width pages, when i used tables(with width over 50% of that of the "content" but not over 100%) inside them in browsers such as opera and iexplore, like this ...<div class="content"><table><tr><td></td></tr></table><table><tr><td></td></tr></table></div> these were the results, - in iexplore, the "content" would enlarge, i.e the 2 tables would try to be on the same lines (if i add break lines, the page might look good in iexplore but then it would look bad in other browsers) - in opera, the second table would somehow find itself outside of the "content" unfortunately for this particular error, i can't use divs to replace the tables since i'm showing tabular data in it moreover the width of the content appears to be bigger in iexplore than in other browsers, is that normal? if possible could someone also state what are the codes other than <a> and <table> that support the :hover css attribute in iexplore and firefox thnx