-
JQuery scroll to not working
Can you show us the code that you use to scroll? Are you using a JQuery plugin? Where are you assigning the previous and next buttons the ability to scroll the gallery items?
-
Layout Issues
You could use percentage widths, and the properties min-height/min-width might be of use to you? For example: .column { min-width: 300px; } #column_1 { width: 30%; } #column_2 { width: 30%; } #column_3 { width: 40%; /* Make sure your percentages add up to 100% or weird things can happen! ;-) */ }
-
Menu Buttons help
If you want the images to be centered vertically then you can just use 'position: relative' and use the 'top' property to change how far each image is from the top of the container.
-
Menu Buttons help
What did you try? Post your code and I will take a look.
-
bit confused
You might find that assigning more than one DIV the same ID (in this case #main_container) means that only one of the DIVs actually have the style defined for that ID in the stylesheet applied. Try changing it to a class. Change #main_container to .main_container and then for the classes style do: .main_container { border: 1px solid #000000; float: left; margin: auto auto 10px 10px; } Then remove the line 'width: 20%' from .twenty_col. EDIT: Is that what you wanted, or?
-
Button url changes depending on URL
commonzen's solution will work, although a more conservative solution would be: <?php if(isset($_GET["pageNum"])) { header("location: http://www.yoursite.com/page" . $_GET["pageNum"] . ".html"); } else { /* If the pageNum variable is not set: */ header("location: http://www.yoursite.com/page1.html"); } ?> This saves you doing a ton of IF functions for each page that exists.
-
Website database help
If you don't currently have a web server then you might want to consider either looking for a decent host or installing XAMPP on your computer so you can develop on your PC. If you install XAMPP then it will come pre-installed with PHPMyAdmin, a database management tool written in PHP. In order to create a database and tables for that database you can either use a code-based solution (via PHP and MySQL) or use the PHPMyAdmin interface. A typical secure members database will have the following tables: Username Salt Hash If you don't know what these are then you need to find out before you start creating the database, or you won't know what to do with them. If you don't intend to make a secure database at all then just two fields, Username and Password, will do.
-
Menu Buttons help
Have a look here, it explains how to center both vertically and horizontally images: http://www.brunildo.org/test/img_center.html
-
Navigation problem
Add 'margin-left: -5px;' to #navigation li in your stylesheet.
-
Layout Issues
You can do what you are looking for using JQuery quite easily. Here is an example of scaling an element on load and scaling it when the user re-sizes the window: /* Bind function to load and resize events: */ jQuery.event.add(window, "load", resizeElements); jQuery.event.add(window, "resize", resizeElements); /* Resize function: */ function resizeElements() { element = $("#my-element"); $(element).css("width", INSERT_WIDTH_CALCULATION_HERE); $(element).css("height", INSERT_HEIGHT_CALCULATION_HERE); } You can use document.body.clientWidth and document.body.clientHeight to grab the height and width of the window (you may need to use JQuery's $(window).width() / $(window).height() functions in some browsers).
-
Google Maps API
I don't think Google Maps stores information on the populations of cities or towns.
-
Button url changes depending on URL
You could use POST or GET to submit a variable (for example, the current page number) to a PHP script and then depending on the value of that variable redirect the user to the next or previous page. However, you could probably do this using some simple JavaScript.
-
my first site
Very clean and focuses on the content, which I like. I see that you are using an image pre-loading script (not AJAX, to answer the above's question)? I would be weary about using this if you want to expand the number of images significantly as 56k viewers will find that loading all those images will affect the website's usability.
-
How to create a 'Tag Cloud'
Sorry, I'm not sure I understand what you mean?
-
jquery adding class
Have you tried JQuery's addClass and removeClass functions?