i tried that, and it still made it as wide as possible. As for the "per-line" comment, I was referring to if I set padding to text, it usually puts padding around each line of text (in result increasing the spacing between the lines) as well as if I set a background-color, it only sets it...
eh, i just used another table. they work and their results are pretty consistent.
I have issues centering floating divs and SPAN usually put attributes on a "per-line" basis. The table worked fine.
Similar to the way a TD expands when you don't specify a width, is it possible to do this with a DIV? When i don't specify a width, it automatically stretches it as wide as it can go. I want the width to work just like the height does, where it only gets larger if it needs to. Is this possible?
well, if you must know i'm trying to figure out a creative and unique way of associating a user group with a folder. I don't know how people normally go about doing this, but when a user registers, it creates a folder on our server and copies a few files there. I need this folder name to be...
I need help creating a function that will remove duplicate characters from a string of text. Basically i want to take a string submitted by the user (John Smith) and take out duplicates of the letters. So end result would be John Smit.
A better example would be Dog Frog Pog
End result will be...
I have a script i'm using from dynamic drive that i'm trying to alter slightly to add a 3rd level navigation. So i'm combining 2 of their scripts. It was pretty well on most browsers except for 1 thing.
When you roll-over a link that calls this function, somewhere in the function instead of...
Sorry about the confusion. I did mean space, however the place i have it is very skinny (9 px), so it will automatically wrap after each letter. I guess what I should have done is:
J o h n
S m i t h
But I meant what I said...
I'm using a prompt to get a user to type in some text. I need to add a space after each character they type as well as 2 line breaks where a natural space appears. for example, if the user types in John Smith, the variable should end up:
J
o
h
n
S
m
i
t
h
I already have the prompt popping up...
I've been doing websites in PHP and MySQL and creating content managers so I don't have to keep my sites updated. I'm trying to venture out into flash and allow users to update their flash site. I'm not exactly sure where to get started, but I don't really know where to look. I would ideally...
I would like to create thumbnails from photos as they are uploaded. It seems to be working, however, the thumbnail quality is very poor and it's not the right aspect ratio.
This is the function I'm using to create the thumbs.
function thumbnail($image_path,$thumb_path,$image_name,$thumb_width)
{...
I want to validate keystrokes and only allow lowercase letters, numbers, underscore, and dash. No spaces, no capital letters, and no special characters or symbols. I want it to check my form on the fly as well. So like on the onKeyPress event, it checks it. How do i go about doing this?
Here's...
sorry, last night, after i was already in the bed, i realized what was wrong
for each of these if statements, i don't have an else. the space thing is not an issue because each like# has the appropriate spacing in it. anyway, since the first variable is blank, the rest of them show up as blank...
Well, first of, this doesn't work. I don't know why. For some reason, my WHERE string is not being created. secondly, is there an easier way to do this?
$like = "";
if(isset($_GET['s']) && $_GET['s'] != ""){
$trimmed = trim($_GET['s']);
$like1 = " contactname LIKE '%$trimmed%'";
$like =...
awesome, that's what i needed. this is for something very basic, so i didn't really need the extra coding for 2 fields there. the one will do just fine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.