cssfreakie
Staff Alumni-
Posts
1,674 -
Joined
-
Last visited
Everything posted by cssfreakie
-
page breaks in IE but works fine in firefox and chrome
cssfreakie replied to devil6600's topic in CSS Help
The site breaks, is too general, certainly since there are at least 5 versions of IE, and there could be a lot that is breaking, cufon html 5 I see your using some html5 stuff, which is nice, but older version of ie will need some help there. i see you added display block for the new tagss in you css but you will need more. I recommend either go old school or read quite a lot about implementing html5. Something to have a look at could be : http://remysharp.com/2009/01/07/html5-enabling-script/ -
box around text which changes border color on hover.
cssfreakie replied to seany123's topic in CSS Help
you require the pseudo hover class for that. (see: http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes) for instnace you have a <p class="yourhoverclass"> </p> with some text in it in css you can than do. p.yourhoverclass{ padding:5px; border:1px solid blue; } p.yourhoverclass:hover{ /* adding a pseudo hover class (:hover) */ border: 1px solid red; } -
there is not as far as i know. but you could do the opposite.
-
could you be more precise, got code, online example etcetera? did you read the sticky? right now your pretty much say: "hi, i am baking a cake at my parents house, and it's not working anyone got ideas?"
-
I need Books slideshow (CSS + JQuery) similiar to this website
cssfreakie replied to hassank1's topic in CSS Help
well that a pretty nice flash slide show. You might to have a look in to the z-index property and position absolute as far as css. Than use jquery to do some fancy sliding stuff. Anyway I know of no standard plugin to do this. So if i were to do it i would do as stated above, if flash isn't an option. -
indeed! this part if ($_POST['submit']) { $date = date("Y-m-d"); $name = $_POST['name']; $comments = $_POST['comments']; // you need to set the other variables here too.
-
isn't it possible to first let them decide 5 or 10 and than get 5 or 10 rows from a database with LIMIT than output the form directly with a foreach loop like: // some data I if you get this from a database i would use LIMIT to fetch either 5 or 10 $your_array = array( 'value1','value2','value3','value4','value5','value6','value7','value8','value9','value10', ); //foreach loop $rows = ''; foreach($your_array as $value){ $rows .= '<tr><td>'.$value.'</td><td>mooOOO</td></tr>'; } // echo form echo $form = <<<FORM <table border="1"> <thead> <tr> <th>some</th> <th>stuf</th> </tr> </thead> <tbody> $rows </tbody> </table> FORM; Not sure if that is what you are looking for but it might help
-
what i would do is instead of using inline style assign a class name. store a classname + code in a database. for instance a table properties classname code value color 1 red color 2 blue in php you could than say: <h2 class="$classname"> than a class outputted could look like color1 or color2 By storing also the value of the class you could print a style tag block to output css. <style type="text/css"> <?php //echo classnames + values like .color1{color:red;} ?> </style> Anyway i would rather use an external stylesheet for this. can't you use a file open read write thing for admins? Hope the above made a little sense, off to bed, sleepy as hell
-
the problem with that little snippet is, is that we have no idea what the value is of the variable. besides that it's way better to separate style from code. so what i would do instead of directly outputing it like doing this <?php foreach($lists->artcount as $key => $value){ echo'<p style="font-size:1.2em;>'.$value.'</p>"'; // this is called inline style in css } ?> instead I would put this function inside a container to set it's value from outside by using a stylesheet. <div id="counter"> ..... <?php foreach($lists->artcount as $key => $value){ echo $value; } ?> ..... </div> and than in a stylesheet you just say #counter{ font-size:1.2em; } or you give it a class <?php foreach($lists->artcount as $key => $value){ echo'<p class="counter">'.$value.'</p>"'; // assigning a class to target it from a stylesheet } ?> But again, defining the looks of something is based on the output, so what you could better do and present us is just right click view source copy paste and post the portion you know that is the right one. maybe it allready has an ide or class or anything so it can be targeted from a stylesheet. But as you might have guessed the stuff(html) coming from that php script we can't know
-
time is irrelevant. If you want others for you to code, and your not showing your efforts in the form of for instance code. this is not the right forum, but the freelance one is. IF on the other hand your showing that effort, (maybe you were close, but just missed a simple thing, or more complex), anything but the freelance forum is the right place. So if you've tried something show it. happy to help, certainly as far as css
-
yes there is! http://www.google.nl/#sclient=psy&hl=en&source=hp&q=increase+font+size+css&aq=f&aqi=g1g-b1&aql=&oq=&pbx=1&fp=61eb56f91fd2604f
-
Did you consider posting this in the freelance forum?
-
keep in mind, most designs for templates can be done without the use of positioning absolute and relative. instead if you know how to use clear and float your designs will often make more sense. Something to have a look at is a gridsystem which uses just that. Some nice ones out there are yui-grid 960-grid oocss-grid
-
Note though: this is client side stuff, so don't rely on it, always check server side if the values are as expected.
-
how to remove .html Extension from address bar?
cssfreakie replied to seany123's topic in Apache HTTP Server
you need mod_rewrite for that assuming you run on apache. : http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html there are quite some topics about this on this forum. just search for mod_rewrite. Anyway the link i gave has an example with a .html extension -
it's could be because of that box shadow. might want to have a look here: http://www.w3.org/TR/CSS2/ui.html#x2
-
this sounds a bit stupid, but the best explanation can be found in the manual: http://www.w3.org/TR/CSS2/visuren.html note the main difference between absolute and relative positioned elements is that absolute positioned ones are taken out of the normal flow; in other words they will not give dimensions (height and width) to the parent element or bother other elements. pretty poften you wrap a div with position relative (i.e. a #wrapper) around a elements that have a position absolute. those absolute ones than behave within the dimension of the relative wrapper. Anyway i would have a look in the manual, as you might expect we can't summarize all that in 3 lines. Hope this helps though
-
What am I missing? How can you put 2 gallons in a quart container? lol i read the question wrong so wrap it in a div with a fixed with. I just paid attention to the title And thought he wanted no gap. Good one crmamx! enfin: Wrap them in a div or any container (block) with a fixed width
-
Ok so implicitly you are saying that you want #popUpDiv to show up. right? More over you want it to show up in the top left corner if read your first post right. if that is the case try out to set the following properties: #popUpDiv { position: absolute; left: 0; /* i changed this */ top: 0; /* idem dito */ background-color: #eeeeee; width: 900px; height: 600px; z-index: 2; } Note though if you would have wrapped this div in another div with a state other than static and that one is positioned someone else on the screen this wont work. So make sure this is above all other mark up like you have it now. instead of an extra div to cover it, up you could have also set something like margin-left: -999em; and than set it to 0 with javascript
-
well i am not sure if that is the question of the topic starter, but in that case. do the same, but than also wrap it in a div with a fix width suitable to contain both... anyway first try out the display:block; float:left; than come back if you have trouble with anything.
-
which div do you mean do you mean? #blanket or #popUpDiv and on what event do you want it to appear? or is some javascript doing that?
-
your welcome, say hello from me to your god
-
well if you don't want them to have some space, set them to display:block; and than float:left;
-
Change position absolute in to position:fixed; and remove the background-attachment property, (since that is not what it's meant for). if you want this to work for ie6 and lower, you will need to use javascript to mimic te fixed property. Instead of the above you could also use javascript to get the height of the document and set that as the height of the div. That is something else than setting it to 100%.
-
Well right now you echo the text out in <p> </p> tags. if you instead would use a <span> text here </span> you can output them on the same line. Note though you can't put a div inside of a <span> If you rather use a <p> you need to give it the property of float:left;