CSS - Photo In Place Of Hex Color Code
I'm not sure if this is related to CSS or not, but I have a blog that gives the option of changing the background colors by submitting a hex color code. I have seen other blogs that have pictures instead of color and I know that this function is available to me at this points and time, I simply have no clue how to activate it. Is there any way to convert a picture in my harddrive to fit a code, or should I just ask the site's maintenance and my fellow bloggers?
Similar TutorialsI am trying (with no luck) in trying to add a style ( a link in another color and size) to the bottom of my page but I already have a a: link up top. I will post the code below: a:link { color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; padding-top: 4px; text-decoration: none; The "other" link I want to change below: .freshlink { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #999999; text-decoration: underline; } .freshlink a:link {color: #009900; font-family: Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: underline;} .freshlink a:visited {color: #999999;} thank you very much for any help on this. /df I tried this to change the background color of a select tag by using color code and nothing happens. It works only in NS6+ and not in IE. IE only accepts color names but not color codes. Code: <select name="sele1" onfocus="this.style.background='#ffffcc'"> If I put a color name eg. 'red' then the background color changes. Is there a way for it to accept color codes too. Thanks Here's the code:
Code: <html> <head> <title>Sample Font Shorthand</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body { margin: 0; behavior: url("../htcmime.php?file=csshover2.htc") } div { } table { width: 100% } .sttable { background-color: #000080 } tr { } td { vertical-align: top } .sttd { font: bold 12px Arial #FFFFFF } </style> </head> <body> <table class="sttable"> <tr> <td class="sttd">Catalog > Categories</td> <td class="sttd">Cart Total: $ 0.00</td> <td class="sttd">Date</td> </tr> </table> </body> </html> Would someone please tell me why the color of the text isn't rendering white? I'm making a game that revolves around four teams. For developmental purposes, I made the team colors blue, red, green, and yellow. And now I'm at the stage where I'm designing a layout. The theme is set in the 1800's, and my first idea was to have a different color scheme for each team (in accordance with their team color,) but my layouts ended up having nothing to do with the 1800's -- just colors (I want to give a very real effect to this website.) So I tried making a universal layout with a sort of tea-stained, burnt edges, parchment look, with a black background, but I had trouble making it tile nicely (partly the burnt edges, partly the stains in the paper.) So this is where I am. I need help designing a layout! I can change the team colors to whatever, I have beginner/intermediate photoshop skills (though, I'm quite competent,) and all suggestions are warmly welcomed! hello, about the well-known color warnings (and in the best interest of good accessibility practices) is setting "background-color: inherit" a proper solution? it supresses the errors, but does it solve the problem of having good contrast between different elements/the use of custom stylesheets? i'm asking because i have a stylesheet with different classes for text which are used over different background-colors (from the parent elements). so unless i make a class for each possible application of these text styles, i don't see a way to specify a fixed background-color... i hope i explained my issue properly... thanks for any thoughts or suggestions on this Hi, I am currently learning CSS and javascript and I'm trying to make a simple photogallery box containing photo's(horizontally). Here is my code: Code: <script language="JavaScript" src="person.js" type='text/javascript'></script> <style type="text/css"> body {background-color:#900;} .box {position:relative; top:200px; left:200px; width:500px; border:2px; border-color:green; background-color:blue; overflow:hidden; } .photo{ margin-top:5%; margin-left:10%; margin-right:10%; } img{ width:100px; height:100px; } </style> </head> <body> <div class="box"> <div class="photo"> <img src="1.jpg" /> <img src="2.jpg" /> <img src="3.jpg" /> <img src="4.jpg" /> </div> </div> </body> Here are my problems: below the box i am trying to get a little box with buttons to the left and right. In the box the photo's must go horizontally next to each other and if there is no spice it must dissapear at the side box so i can press the buttons left or right to get the photo's in the middle. But now the 3 photo's are horizontally and the next is on a new line instead of in going away at the side of the box. Can anyone give me some advice and tips please thnx! I've got a photo gallery loaded and working well but I would like to load the first photo of the gallery without the user having to click the thumbnail. Right now the photo holder is blank until the user clicks the first one. Any help is greatly appreciated. Steve a.gallery, a.gallery:visited { display:block; display:inline-block; color:#000; text-decoration:none; border:1px solid #000; width:75px; height:47px; float:left; margin:4px; } a.slidea {background:url(../img/index/tlc1.jpg);} a.slideb {background:url(../img/index/tlc2.jpg);} a.slidec {background:url(../img/index/tlc3.jpg);} a.slided {background:url(../img/index/lc4.jpg);} a.slidee {background:url(../img/index/lc5.jpg);} a.slidef {background:url(../img/index/lc6.jpg);} a.slideg {background:url(../img/index/lc7.jpg);} a.slideh {background:url(../img/index/lc8.jpg);} a.slidei {background:url(../img/index/lc9.jpg);} a.slidej {background:url(../img/index/lc10.jpg);} a.gallery em, a.gallery span {display:none;} a.gallery:hover {border:1px solid #fff;} a.slidea em {background:url(../img/index/lc1.gif) 5px 5px no-repeat;} a.slideb em {background:url(../img/index/lc2.gif) 5px 5px no-repeat;} a.slidec em {background:url(../img/index/lc3.jpg) 5px 5px no-repeat;} a.slided em {background:url(../img/index/lc4.jpg) 5px 5px no-repeat;} a.slidee em {background:url(../img/index/lc5.jpg) 5px 5px no-repeat;} a.slidef em {background:url(../img/index/lc6.jpg) 5px 5px no-repeat;} a.slideg em {background:url(../img/index/lc7.jpg) 5px 5px no-repeat;} a.slideh em {background:url(../img/index/lc8.jpg) 5px 5px no-repeat;} a.slidei em {background:url(../img/index/lc9.jpg) 5px 5px no-repeat;} a.slidej em {background:url(../img/index/lc10.jpg) 5px 5px no-repeat;} /* styling for gallery */ #container_right { float:left; width:100%; height:300px; position:relative; background-color:#839BAE; background-image: } #container_right img { border:0; } #container_right .thumbs { width:170px; position:absolute; right:32px; top:6px; } #container_right a.gallery:hover span { display:block; position:absolute; width:402px; height:50px; top:260px; left:-520px; padding:5px; font-style:italic; color:#fff; z-index:100; } #container_right a.gallery:hover span:first-line { font-style:normal; font-weight:bold; font-size:1.1em; color:#CCCCCC; } #container_right a.gallery:active, #container_right a.gallery:focus { border:1px solid #000; } #container_right a.gallery:active em, #container_right a.gallery:focus em { display:block; position:absolute; width:510px; height:275px; top:1px; left:-525px; padding:5px; color:#000; z-index:50; } I am wanting to do a photo gallery section like http://www.passionforpaintings.com/...rtists/overview. The problem is it is in html and I been looking for css gallery tutorials and can not find anything like this. Could anyone give me some help or point me in the right direction please? Many thanks in advance. Hi, after having the problem with the div's in IE I got a new problem. I got a clock placed in my sidebar and under it there is some text. In FF it's placed right but in IE not again :S How can I fix this? Link: www.windmolentechnologie.tk Code: index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <TITLE>Windmolentechnologie</TITLE> <LINK HREF="http://windmolentechnologie.webs.com/css/default.css" REL="stylesheet" TYPE="text/css" /> <style type="text/css"> .hiddenPic {display:none;} </style> <noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript" src="http://windmolentechnologie.webs.com/js/nav1.js"></script> <script type="text/javascript" src="http://windmolentechnologie.webs.com/js/klok.js"></script> <script src="http://static.freewebs.getclicky.com/44044479.js" type="text/javascript"></script><noscript><img alt="Clicky" src="http://in.freewebs.getclicky.com/44044479-fwdb4.gif" /></noscript> </HEAD> <BODY> <div id="container"> <div id="nav"> <img src="http://windmolentechnologie.webs.com/images/Nav2.png" USEMAP="#nav" border="0" name="nav1"> <map name="nav"> <area shape="rect" coords="261,40,339,120" href="home.html" alt="Home" target="iframeinhoud" onMouseOver="imageChange('nav1','alt1')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="341,40,419,120" href="inhoud.html" alt="Home" target="iframeinhoud" onMouseOver="imageChange('nav1','alt2')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="421,40,499,120" href="logboek.html" alt="Home" target="iframeinhoud" onMouseOver="imageChange('nav1','alt3')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="501,40,579,120" href="profielen.html" alt="Home" target="iframeinhoud" onMouseOver="imageChange('nav1','alt4')" onMouseOut="imageChange('nav1','alt0')" /> <area shape="rect" coords="581,40,659,120" href="bedrijven.html" alt="Home" target="iframeinhoud" onMouseOver="imageChange('nav1','alt5')" onMouseOut="imageChange('nav1','alt0')" /> </map> </div> <div id="banner"> </div> <div id="content"> <div id="new"> <table id="klok"> <td id="kloktd"> <img src="dg8.gif" name="hr1"><img src="dg8.gif" name="hr2"><img src="dgc.gif" name="c"><img src="dg8.gif" name="mn1"><img src="dg8.gif" name="mn2"><img src="dgc.gif" name="c"><img src="dg8.gif" name="se1"><img src="dg8.gif" name="se2"> </td></table> <p id="new1">Dit is een testlijntje</p> <p id="new2">lolololol</p> <p id="new2">what happens if this line is a little bit too long for the box?</p> <p id="new3">fredje pietje ludo</p> </div> <div id="inhoud"> <iframe name="iframeinhoud" src="home.html" frameborder="0" height="500" width="540" scrolling="no" allowtransparency="true"></iframe> </div> </div> <div id="footer"> </div> </div> <img src="http://windmolentechnologie.webs.com/images/InhoudHome.png" alt="InhoudHome" title="InhoudHome" height="500" width="540" class="hiddenPic"> <img src="http://windmolentechnologie.webs.com/images/InhoudLog.png" alt="InhoudLog" title="InhoudLog" height="500" width="540" class="hiddenPic"> </BODY> </HTML> Code: css (will make this shorter later) html { margin:0; padding:0; height: 100%; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } body { background-color: #f2f3ed; margin: 0px; padding: 0px; height: 100%; z-index:0; position:relative; text-align: center; } #container { position:relative; height:auto !important; min-height:100%; width: 760px; margin:0 auto; } #nav { width:100%; height:160px; background: url(../images/Nav.png) no-repeat; } #banner { width:100%; height:101px; background: url(../images/Banner.png) no-repeat; } #content { width:100%; height:500px; background:transparent; } #new { background: #e6e8dc url(../images/New.png) no-repeat; width:220px; height:500px; float:left; text-align: left; } #inhoudhome { background: #e6e8dc url(../images/InhoudHome.png) no-repeat; width:540px; height:500px; float:left; text-align: left; } #inhoudlog { background: #e6e8dc url(../images/InhoudLog.png) no-repeat; width:540px; height:500px; float:left; text-align: left; } #inhoudprof { background: #e6e8dc url(../images/InhoudProf.png) no-repeat; width:540px; height:500px; float:left; text-align: left; } #footer { background: url(../images/Footer.png) no-repeat; height:50px; width:100%; position:relative; } p#inhoud1 { margin:35px 5px 0px; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } p#inhoud2 { margin:0px 5px 0px; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } p#inhoud3 { margin:0px 5px 10px; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } p#new1 { margin:35px 5px 0px 25px; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } p#new2 { margin:0px 5px 0px 25px; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } p#new3 { margin:0px 5px 10px 25px; font-family:Tahoma,"Times New Roman",Georgia,Serif; font-size:14px; } table.tabellog { border-collapse: collapse; margin:37px 25px 10px 6px; width:510px; border-width: 1px; border-style: solid; } table.tableprof1 { border-collapse: collapse; margin:37px 25px 5px 6px; width:510px; border-width: 1px; border-style: solid; } table.tableprof2 { border-collapse: collapse; margin:5px 25px 5px 6px; width:510px; border-width: 1px; border-style: solid; } table.tableprof3 { border-collapse: collapse; margin:5px 25px 10px 6px; width:510px; border-width: 1px; border-style: solid; } td { padding:5px; border-width: 1px; border-style: solid; } td.datlog { text-align:center; font-weight:bold; width:90px; } td.omschlog { font-weight:bold; } td.tijdlog2, td.datlog2 { text-align:center; } td.tijdlog { text-align:center; width:100px; font-weight:bold; } td.kol1 { font-weight:bold; width:125px; } td.kol1foto { width:100px; height:125px; } table { border-color:#000; } table#klok { margin:64px 5px 0px 57px; border-width:0px; } td#kloktd { height:45px; border-width:0px; } Hello, Using tables and CSS or CSS alone (NO Javascript is allowed!), I am trying to figure out a want to display an image and directly underneath it display the Photographer's name even with the left margin and the company (or other source) of the image flush right. one complication is that the image sizes are not constant (i.e., 546x700, 1100x453, etc.) So, tables seem to be desired but when I tried class="text-lf" and class="text-rt" setting the text-align:left; and text-align:right; they both just aligned on the left edge. Mock up of typical case.... +-------------------------+ | ------------------------- | | ------------------------- | | ------------------------- | | ------------------------- | | ------------------------- | +-------------------------+ Photog. --------------- Coma. Code: .imgsrc_lf {font-size:70%;text-align:left;} .imgsrc_rt {font-size:70%;margin-left:10%;text-align:right;} Code: <div class="center"> <table width="100%" summary="Image Block"> <tr> <td> <a href="images/hurll_tuscan_frontispiece_clr.jpg"><img src="images/hurll_tuscan_illus01.jpg" width="383" height="499" border="0" alt="IL MARZOCCO (DONATELLO)" /></a><a href="images/hurll_tuscan_illus01.jpg"><img src="images/magnify.gif" width="33" height="33" border="0" alt="magnify" /></a><br /> <span class="imgsrc_lf">Alinari, photo.</span><img src="images/cleardot.gif" alt=" " width="1" height="1" /><span class="imgsrc_rt">John Andrew & Son, Sc.</span> <tr> <td colspan=2 class="center">IL MARZOCCO (DONATELLO)<br /><i>National Museum, Florence</i><br /><br />Click on the above image to view a modern color image of the bronze copy.<br /></td> </tr> </table> </div> Any assistance is appreciated! Hi! I've got a problem thats driving me mad. i got two divs inside my Content-div. The Text-div and the Box-div at the moment they are arranged like this: data.fuskbugg.se/dipdip/thisishowitis.jpg In the Box-div i've inserted two pictures that i want vertical aligned and the Box-div should be to the right i want it to look like this data.fuskbugg.se/dipdip/howitshouldbe.jpg with the Text-div and the Box-div next to each other. NOT on top of each other PLEASE help me out / Dippah Hi Everyone, I've been trying for weeks now to get my footer to sit at the bottom of my screen. I've read all of the how-to articles regarding footers and tried what seems like everything! After some investigation with Firebug I've determined that my problem seems to be some of my "wrapper" divs. My container and pagewrapper divs should be encompassing everything on the screen but they are not. If you wouldn't mind taking a look for me, I would REALLY appreciate it. Right now I have the grey footer just chillin' in the middle of the page as you can see. www.RoundtopRiders.com/v2/ THANK YOU!!! Jason Is it possible to use CSS to place one image over the top of the other? For what I mean go he celticblues dot com/test/test.html I could do the same thing via photoshop, but I want to do it with CSS as I have several to do and I am not sure of the relative sizes yet and don't want to keep redoing the photoshop thing. Ed What is a way to add rounded corners to photos using just CSS? What is a way to add rounded corners to photos using just CSS? Ideally, a PHP script would implement it. In other words, people submit photos online, and a script causes them to have rounded corners when they're on the website on display. In any case, I just need the CSS for creating rounded corners on photos. Seems to work just fine in IE 5.5+, however in Mozilla 1.5 the text just drops below the photo. Here is the page: http://www.sdtars.com/development/events/days.php Here is the sites CSS: http://www.sdtars.com/development/styles/layout.css Any help would be much appreciated. Thanks. Hey everyone, i'm having a bit of trouble with a page i'm making, it seems no matter what i do this one div one left align some text in it. It seems to center everything and i cant stop it from doing it, also the div's inside wont all be on the same line as in one after the other it's the Latest Blog section. hxxp://24.141.168.102:8080/ar/?page=blog That's my personal web server i use so if someone could have a look at this and get back to me i'd really appreciate it. i have a site that if the page isn't cached, some of the content starts like, at the top of the page and then shifts in to it's positioned place. why does this happen? how can i stop it? Hello, I have made playersnutrition.com As you can see, when you go to another page, the menu dosent stay at the top. How do I make it stay at the top???? Hi, I have a problem with creating a CSS banner div. I can't seem to get the .centeredbox to the absolute top of the page, while keeping it centered with auto margin: Code: <html> <head> <title>Untitled Document</title> <style> .wrapperbox {text-align: center; } .centeredbox {width: 682px; margin: 0 auto 0 auto; text-align:left; background-color: #000000;BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 11px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid;} </style> <div class="wrapperbox"></div> <div class="centeredbox"></div> </head> <body> </body> </html> With this code it keeps a little space between the div and the top of the page. I don't want that space . Does anyone have a solution? I would like to have a header on my page with my logo in the top left corner, and a cloud image going the rest of the way across the top. I set up the cloud image as a background, but wanted the logo to be clickable so it is set up in the html as an image. The problem is that I want the image to be fixed in the corner so that when the visitor scrolls, it stays at the top. It looks good in Firefox and in Chrome, but in IE it is a few pixels offset from the corner and I have no idea how to fix it. See what I mean he felixairservices.com Here is my css for the logo: Code: body { background:#6699BB url('sky.jpg') no-repeat top right fixed; background-size: 90% 228px contain; } img.logo { position:fixed; top:0px; left:0px; margin:0; padding:0; border-style:none; } And here is the html I am using to display it: Code: <a class="logo" href="index.html" border="0"><img class="logo" src="Logo.jpg" valign="top" align="left" border="0"></a><br> Any help would be appreciated. I'm just a simple AC contractor trying to build a decent web page for my business. |