Unable to select text and creative domain names

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hartmannr76
Forum Newbie
Posts: 5
Joined: Thu Mar 31, 2011 12:27 pm

Unable to select text and creative domain names

Post 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!!
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Unable to select text and creative domain names

Post 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.
hartmannr76
Forum Newbie
Posts: 5
Joined: Thu Mar 31, 2011 12:27 pm

Re: Unable to select text and creative domain names

Post 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?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Unable to select text and creative domain names

Post by McInfo »

Remove the z-index rule on line 499 of style.css.
hartmannr76
Forum Newbie
Posts: 5
Joined: Thu Mar 31, 2011 12:27 pm

Re: Unable to select text and creative domain names

Post by hartmannr76 »

uhh your the freakin man haha thanks so much!!
hartmannr76
Forum Newbie
Posts: 5
Joined: Thu Mar 31, 2011 12:27 pm

Re: Unable to select text and creative domain names

Post 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
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Unable to select text and creative domain names

Post by McInfo »

hartmannr76
Forum Newbie
Posts: 5
Joined: Thu Mar 31, 2011 12:27 pm

Re: Unable to select text and creative domain names

Post by hartmannr76 »

haha Ive heard people mention it but I guess it really is just that good of a tool... awesome man, thanks again!
Post Reply