-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Zane
-
-
Gah, everytime I post a thread I figure the solution out immediately after.
div#nav li.contact { # background-color:#DB4848; text-decoration: none; color: white; font-weight: bold; font-size: 22px; position:absolute; bottom:0px; left:0px; width:130px; }
I suppose this is solved now.
-
I'm sure the use of position or a negative bottom margin would do this, but then again, I'm not too sure. What I'm trying to do is take one specific LI, which has an id of "contact" and place it at the bottom left of the screen in a fixed position.
If you look at the source, I have this for the navbar
Contact Us. About Us Unfinished Prefinished Laminate JANKA Scale
It's CSS contains this
div#nav { height: 100%; width: 145px; background-color: black; background-color: #8C9AA3; background:url(gradient.jpg); background-size: 100% 100%; font-family:"Arial"; margin: 0px; padding: 0px; padding-top: 0px; font-weight: bold; position:fixed; color:white; border-right: 1px solid black; } div#nav ul { list-style:none; margin: 0px; padding: 0px; } div#nav li { padding:6px 3px; text-align:right; height: 30px; } div#nav li a { text-decoration: none; color:#eee; width:100%; height:100%; } div#nav li { background-color: 649DE8; } div#nav li:hover { background-color: #1364CF; color:white; cursor:pointer; } div#nav li:hover a { cursor:pointer; } div#nav li.contact { background-color:#DB4848; text-decoration: none; color: white; font-weight: bold; font-size: 22px; } div#nav li.contact:hover { background-color:#FF3C00; }
What would be the easiest method to move that red Contact button to the bottom of that blue bar.?
-
I'm intrigued about the PHP 5.4 aspects of the framework, which features are you using that were introduced with 5.4? Can it run at all on 5.3?
Yeah.. I agree.
The site looks fine, professional, all that good stuff... but what exactly is it that your MVC does? You should provide some sort of demonstration on your site. Then again, I do feel rather ignorant on the subject of MVC.. maybe it's self explanatory if I knew it?
Regardless, you need to demonstrate WHY your framework is good.
-
$username&&$password
That is the unexpected T_BOOLEAN
You cannot group together variables inside the empty function
You'll need to perform two of them... using that same T_BOOLEAN
if( !empty($username) && !empty($password) ) {
-
I'm sure there's a more efficient way using an array_map, but this is the best I can come up with off the top of my head.
$array = array("11:23", "12:46", "13:34", "14:34", "14:85"); foreach($array as $value) { if(strpos($value, "12") !== FALSE) { echo "Yes"; } }
-
Personally, I think rythemton's method is better...
Regardless, these forums aren't meant for code to be written for you only to jump back with the error. Research these errors. This isn't a race to see who can write the perfect code either. Just my 2 cents.
-
Welcome aboard yo. Congrats
-
RSS Feed is at the bottom of the page, under RSS
http://www.phpfreaks.com/forums/index.php?action=.xml;type=rss
As for RSS feeds per board.. I don't know
-
Think of it like a movie rental store. The actual database is.. well, the movie store itself. SQL is the cashier who helps you find a certain movie. PHP is YOU, the customer, albeit a very annoying one in this analogy. You can ask the cashier (SQL) to find you any movie that you want, but unless you actually rent the movie, the location of this movie is lost... and since this hypothetical customer has no SQL memory, he/she must ask the cashier(SQL) again and again and again where every single movie that he/she wants .. is.
It isn't until the customer(PHP) actually says, "I think I'll pick that one up..and hold it in my hands while I find others" that memory is stored. Well, I guess it wouldn't be stored into memory until said movies were actually rented, but the customer could steal them. Either way, the customer selecting the movies is no different that when you assign variables for result sets in PHP.
-
I don't see any point since you can zoom in already on pretty much every browser.
-
Even though it isn't code related, I think that a phpfreaks logo contest would be a good idea for a start competition.
We couldn't exactly guarantee that the winning logo is used, but I am very curious to see what everyone could come up with. I find myself ocasionally sketching out logos when I'm doodling, but I can never get passed that segmented circle. There has to be an awesome-r phpfreaks logo out there in someone's brain somewhere.
-
check out onUnload and onBeforeUnload
-
Is it in phpinfo() ?
Yes
-
So long as you have
session.cookie_lifetime = 0;
in your php.ini file, then yeah, the browser will destroy the session. -
Use the mysql_num_rows function
-
When I take the attr() part away, then FF and IE work the same way.
I get an alert of object : Object in each browser
I have also tried the val() function, I get the same results.
-
Can anyone tell me why this doesn't work in IE? Other than the fact that it is IE
$("#wrapper tr").live('click', function() { var link = $(this).find("input").attr('value'); alert(link); //window.open(link); });
When I run this in FF, the alert says "NOLINK", like I have hardcoded into the input
When I use IE, of course, it fails to work... and the alert says "undefined"
-
aha.. I got it!
background-size: 100% 100%
I don't understand why both width and height have to be 100%, but oh well, it works.
-
I know it's possible somehow to stretch a gradient 100% vertically. I just can't figure out how to do it.
Suppose I have my div#nav
div#nav { height: 100%; width: 200px; background-color: black; background-color: #8C9AA3; /// What am I doing wrong? background: url(gradient.jpg) 100%; /// I need this gradient to span from top to bottom. font-family:"Arial"; margin: 0px; padding: 0px; padding-top: 0px; font-weight: bold; position:fixed; color:white; }
Here's the gradient..
http://reallycheapfloors.com/gradient.jpg
This is possible right?
-
Straight from webfaction.com
Once you have a domain name, you can use your domain registrar’s website to point your domain name to WebFaction’s domain name servers:
Name Server IP Address
ns1.webfaction.com 50.56.93.59
ns2.webfaction.com 178.79.142.142
ns3.webfaction.com 209.114.37.51
ns4.webfaction.com 173.230.141.144
I suppose the MX records will automatically update when the domain moves to the nameserver.
Regardless, the MX question is covered in the above link.
-
-
Just copy your website to your new server before DNS propagates.
Copy all files, dump any SQL databases you have and assume the new server has the domain already.
-
There's also a multiplication assignment operator..
*=
so you can easily just say
$number *= 2;
-
$record_id must be empty. $result is only created if $record_id isn't empty.
lock specific LI to bottom of page
in CSS Help
Posted
at the bottom left.. ALWAYS, even when scrolled. Which I believe is what is does now