CSS - Css Tips And Tricks
Hi guys!
I thought it could be cool to somehow put together a list of all tips and tricks that should be known in order to program effectively in CSS. Thanks for your contributions Similar TutorialsI want to know.. how can i make a css scrtip that will work on IE and firefox.. because sometimes i make one.. looks good in F/F but not in IE I am trying to use hover tips to describe my table headings. I have tried using the title attribute but some of the explanations are long and the title attribute has size limitations. So I have created a block that displays when the header is hovered over. My problem is when the table header is on the right side of the page the tip box scrolls off the right side of the page and can't be read. Is there a simple way using css to keep the box on the page? Here is my CSS code: Code: /* CSS Document */ div.tips a { cursor:help; } /* we don't know why this works. change at peril of your sanity. */ div.tips a:hover { height: auto; } div.tips a span { display:none; } div.tips a:hover span { display: block; position:absolute; margin-right:10px; padding: 0.5em; color: black; border: solid 1px #666666; text-align: justify; text-decoration:none; font-size:0.75em; z-index: 1; background-color: #FFFFCC; width:30em; } Hey, I'm making a new style for my wii fansite but the style I've got so far looks very boxy. http://www.wii4friends.com/v2/ I was wondering if anybody had any tips and making the page more seamless and less boxy I planned on making the box head title not so high. I also find the rightside looking a bit dull I am on this big personnal project where I want to make a site where people can go look for resources and references. Saying that, I would like to know which programming language should be included in the project. CSS, HTML, VB, Cobol, Java, will be included for sure. Also, if anyone have good links to add to the links page, or to check out, please let me know. You can contact me at drummer_sweety@yahoo.ca Of course the devshed forum will be part of the links Thank you for your help! Hey-- Are there are good resources or tips for developing a site to work on desktops and on mobile devices? I'd like to make a new site that works great in as many places as possible and need to know what restrictions I encounter and best practices and such. Thanks! Hi, I recently started migrating from a table layout to a css based one. I've probably made the classic mistake of using IE to develop only to find it looks awful in other browsers e.g. firefox. Being relativity new to CSS I've looked at various websites and if I understand the issue correctly some browsers like firefox adhere strictly to the CSS standard whereas IE doesn't. My question is would I be better developing separate CSS files for each browser type and use a script to determine which one? If anyone can point me at a resource that points out the differences between IE CSS standards and other browsers I'll be internally grateful. Regards Paul PHP Code: #searchBox { float:right; margin:0em; padding:0em; margin-right:0.2em; clear:right; background-image:url(/images/site/backgrounds/searchBox.jpg); /*border:black solid 1px;*/ } #searchBox input { margin:0em; padding:0em; background-color:#d2c5a2; } .submit { background-color:#6F5F42;; color:#483e2b; font-size:smaller; font-weight:bold; margin:0em; padding:0em; } and html PHP Code: <div id="searchBox"> <form action="search.php" method="post" style="margin:0em; padding:0em;"> <fieldset style="border:1px solid #a29383; margin:0em; padding:0.1em;"> <label>What are you shopping for?</label><input type="text" name="search" size="14"/> <input class="submit" type="submit" name="submit" value="Search" /> </fieldset> </form> </div> i dont know but for some reason in firefox the three elements of form (label, input & submit) are on the same line but in IE they are in two lines.. I have just tried width:55%; but the submit box goes outside the top box.. but in FF the searchbox goes haywire and take the whole box!! also is there anyway to make sure that the font sizes are same/similar in both IE and FF? http://www.zahra-zahra.com/fullpage.html EDIT: to say i have tweaked it and firefox problem is solved but IE still puts the form OUTSIDE The box.. look at my site. it is very boxy and almost TOO structured. is there a design trick i can use to mix it up a little? specific examples would be greatly appreciated. |