Page 1 of 1

Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 12:30 pm
by hartmannr76
Hey guys,
This is my first time on this forum, I've tried others but havent received help with this question, so I hope you guys can help...

Im working on an article feed to my homepage and the outcome of when I call my php file, is that my "summary text" and image of the feed are unselectable, but you can highlight the title text.. The title text is varchar and the summary is text in the sql database. When I call the php file by itself, everything is selectable the way I would like it to be but no styling (which I'm guessing is ok bc its just for the dynamic elements). How can I fix this?

Here is my feed php code:
<?php
require_once "config.php";
$sqlCommand = "SELECT * FROM articles ORDER BY id DESC LIMIT 3";
$query = mysql_query($sqlCommand) or die(mysql_error());
while($row = mysql_fetch_array($query)) : ?>
<div id="projectBlock">
<img src="<?php echo $row["imageLocation"]; ?>" />
<h5><?php echo $row["title"]; ?></h5>
<p><?php echo $row["summary"]; ?></p>
</div>
<?php endwhile;
mysql_close(); ?>

My second question.. so my personal site I'm redoing bc my old laptop was stolen (had my files on it) and I "somehow" accidentally deleted the files I had on the server.. so poof.. but in this redesign phase, I was thinking about maybe a different domain name.. so my current one is rickmhartmann.com, but would something a little more creative like (someone thought of this) rickofharts.com be looked at poorly by possible future employers? Any ideas?

Thanks!!

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 4:28 pm
by McInfo
Suppressing this CSS rule allows the summary text to be properly selectable.

Code: Select all

#projectBlock {
    z-index: -1;
}
It is more appropriate for "projectBlock" to be a class than an id because it is used to describe more than one element.

As for your domain name question, I think it depends on the disposition of the employer.

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 7:54 pm
by hartmannr76
Thank you, that actually makes a little more sense for something along these lines, but I still have the same problem..
you can see it at http://rickmhartmann.com/

The "project updates" section: only the title is highlightable and the summary text and even the image isnt... any clue?

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 9:44 pm
by McInfo
Remove the z-index rule on line 499 of style.css.

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 10:03 pm
by hartmannr76
uhh your the freakin man haha thanks so much!!

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 10:07 pm
by hartmannr76
btw, if you dont mind me asking, what did it take to figure that out? I've done computer programming for about 6 years now, and have only really started to get into web over the past couple months, but to "debug" an issue like this, Im still trying to figure out how you somehow could

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 10:13 pm
by McInfo

Re: Unable to select text and creative domain names

Posted: Thu Mar 31, 2011 10:16 pm
by hartmannr76
haha Ive heard people mention it but I guess it really is just that good of a tool... awesome man, thanks again!