• Questions That Don't Need Their Own Thread v3
    4,068 replies, posted
  • Well I made a crop of the image to the most clear character (the centre 'R'): [IMG]http://i.imgur.com/toQt8.png[/IMG] Uploaded it to this site: [URL="http://www.myfonts.com/WhatTheFont/"]http://www.myfonts.com/WhatTheFont/[/URL] and it seemed to think that the font was either [URL="http://www.myfonts.com/fonts/mti/bookman-old-style/bold/"]Bookman Old Style Bold[/URL] or [URL="http://www.myfonts.com/fonts/urw/bookman/urw-bookman-bold/"]URW Bookman Bold[/URL] both of those fonts look similar enough to what you put in the picture for you to be able to get away with using them. [editline]21st April 2012[/editline] In fact, Bookman Old Style Bold looks like it's exactly the right font.
  • [QUOTE=rookwood101;35659904]Well I made a crop of the image to the most clear character (the centre 'R'): [IMG]http://i.imgur.com/toQt8.png[/IMG] Uploaded it to this site: [URL="http://www.myfonts.com/WhatTheFont/"]http://www.myfonts.com/WhatTheFont/[/URL] and it seemed to think that the font was either [URL="http://www.myfonts.com/fonts/mti/bookman-old-style/bold/"]Bookman Old Style Bold[/URL] or [URL="http://www.myfonts.com/fonts/urw/bookman/urw-bookman-bold/"]URW Bookman Bold[/URL] both of those fonts look similar enough to what you put in the picture for you to be able to get away with using them. [editline]21st April 2012[/editline] In fact, Bookman Old Style Bold looks like it's exactly the right font.[/QUOTE] Thanks. That was extremely useful.
  • How would I make an element (DIV) have the height of the html document - [i]some[/i]px in JS?
  • [QUOTE=xmariusx;35660150]How would I make an element (DIV) have the height of the html document - [i]some[/i]px in JS?[/QUOTE] do you want plain JS or can it be with jquery
  • [QUOTE=jung3o;35660289]do you want plain JS or can it be with jquery[/QUOTE] Plain JS, please :)
  • It's so easy in plain javascript anyway: [code] (function(document){ document.getElementById('the_div').style.height = document.body.clientHeight + 'px'; })(document); [/code]
  • mind explaining the script too? Don't want too use something I don't know how works! Doesn't know very much about javascript. Understand the "document.getElementByID('ID').style.height = + 'px' " part and i guess clientHeight just returns the size of the body? what is the last (document) for? and why have you () around function? -Thanks anyways!
  • I wrapped it in a self executing anonymous function with the document object passed in as an argument. The benefit of that is to keep any variables you create from leaking into the DOM, the DOM is like a dictionary for all browser specific objects/variables etc. The other benefit of it is that it saves the document object so it doesn't have to look it up every time you use it and if you ran the code through a JavaScript minifier it would rename document to a single letter saving a quite few bytes. [editline]21st April 2012[/editline] A function wrapped in parathesis like this: (function_geos_here)(); means it will be executed when the javascript engine interrupts it instead of having to be run manually like this: [code] function blah(){ alert('blah'); } blah(); [/code]
  • [code] <div height 100px> </div> <div height x> <div height y> </div> </div> [/code] div x needs to touch the bottom of the screen if div y is smal. div y is sometimes larger then the screen and sometimes smaller. Basically need an min-height for div X that is 100%-100px. I'm pretty sure I asked this before but I can't find it anywhere. How do I do it?
  • Are you talking about a sticky footer? [url]http://ryanfait.com/sticky-footer[/url]
  • Not sure. I have a div at the top of my page with a fixed height (150px). Below that I have a container div. Together those two divs need to have a minimum height of 100% with the container div stretching all the way to the bottom.
  • [QUOTE=jaybuz;35660424]It's so easy in plain javascript anyway: [code] (function(document){ document.getElementById('the_div').style.height = document.body.clientHeight + 'px'; })(document); [/code][/QUOTE] .. makes the div client height * px or something? I got an insane long page! :D It was meant for making the middle div fill up the rest of the page. [QUOTE=Miljaker;35662284]Not sure. I have a div at the top of my page with a fixed height (150px). Below that I have a container div. Together those two divs need to have a minimum height of 100% with the container div stretching all the way to the bottom.[/QUOTE] This sounds something like my problem too! :D
  • Use position absolute on the container and set the top to the height of the header and bottom to 0. [editline]21st April 2012[/editline] If you want it to be centered add left: 50% and margin: 0 0 0 -{half the width of the container}px;
  • [QUOTE=jaybuz;35663528]Use position absolute on the container and set the top to the height of the header and bottom to 0. [editline]21st April 2012[/editline] If you want it to be centered add left: 50% and margin: 0 0 0 -{half the width of the container}px;[/QUOTE] Doesn't work in IE7, and it needs to work in IE7. Anyway, I just haxed and used an image instead of css so now I just put the top div in the container as wel. Nothing important and don't feel like wasting time on it.
  • The solution I posted works in all browsers actually. You may need to set the html and body element to have height 100% though.
  • Just posted to say thanks to everyone who helped me the other day. You were useful, and I appreciate it. Since then I've been able to expand and do nicer things with my code. Every day is a learning day!
  • Just a quick question: Should I start learning PHP or Rails? I've heard brilliant things about both but I can't get my head around which one to devote myself to.
  • [QUOTE=Zethereal;35683701]Just a quick question: Should I start learning PHP or Rails? I've heard brilliant things about both but I can't get my head around which one to devote myself to.[/QUOTE] learn python
  • [QUOTE=Zethereal;35683701]Just a quick question: Should I start learning PHP or Rails? I've heard brilliant things about both but I can't get my head around which one to devote myself to.[/QUOTE] learning rails without knowing ruby is a bad idea
  • A while back I made a website for someone but long story short they never actually used it. Now they loved it and wrote me a recomendation letter which I hope to use at some point but I assume if I show someone the letter they will want to see the site, I dont really want to host a copy of it so I was wondering if there is any tool that could scan through a website (if I have it on wamp or something) and create some sort of pdf or document to just be able to showcase what the website looked like.
  • [QUOTE=Richy19;35686749]A while back I made a website for someone but long story short they never actually used it. Now they loved it and wrote me a recomendation letter which I hope to use at some point but I assume if I show someone the letter they will want to see the site, I dont really want to host a copy of it so I was wondering if there is any tool that could scan through a website (if I have it on wamp or something) and create some sort of pdf or document to just be able to showcase what the website looked like.[/QUOTE] [img]https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcSGEgZdXj3CHo9vmVzMA_pdD2fekDiTVoOsiuG_izDpqEmHNL2Z[/img]
  • [QUOTE=Catdaemon;35686969][img]https://encrypted-tbn0.google.com/images?q=tbn:ANd9GcSGEgZdXj3CHo9vmVzMA_pdD2fekDiTVoOsiuG_izDpqEmHNL2Z[/img][/QUOTE] multiple pages... but yes im just doing that, and then il just edit all the pages in gimp together to make a poster kind of thing
  • [QUOTE=Richy19;35686749]A while back I made a website for someone but long story short they never actually used it. Now they loved it and wrote me a recomendation letter which I hope to use at some point but I assume if I show someone the letter they will want to see the site, I dont really want to host a copy of it so I was wondering if there is any tool that could scan through a website (if I have it on wamp or something) and create some sort of pdf or document to just be able to showcase what the website looked like.[/QUOTE] Is it html only? If so host on dropbox.
  • [QUOTE=mobrockers2;35687139]Is it html only? If so host on dropbox.[/QUOTE] Noo threres php as well, Im ok just making a montage of how it looks. I mean the only purpose is to show i actually did the website and didn just get some randomer to make me the letter
  • Here's a funny one for you. I rent my domain name from 123-reg.co.uk, and they've recently adopted a new password validation system. ALL passwords now HAVE to be EXACTLY 8 characters long. Why? At first thought I'd have thought it was to save on database size, but surely that'd be 8 or less characters. Thoughts?
  • [QUOTE=Slater;35705627]Here's a funny one for you. I rent my domain name from 123-reg.co.uk, and they've recently adopted a new password validation system. ALL passwords now HAVE to be EXACTLY 8 characters long. Why? At first thought I'd have thought it was to save on database size, but surely that'd be 8 or less characters. Thoughts?[/QUOTE] There's no possible way that's safe.
  • [QUOTE=AndrewPH;35705878]There's no possible way that's safe.[/QUOTE] I really, really don't get what they're trying to achieve. And you're right!
  • [QUOTE=Slater;35705627]Here's a funny one for you. I rent my domain name from 123-reg.co.uk, and they've recently adopted a new password validation system. ALL passwords now HAVE to be EXACTLY 8 characters long. Why? At first thought I'd have thought it was to save on database size, but surely that'd be 8 or less characters. Thoughts?[/QUOTE] My bank does the same thing, 8 characters too