Jump to content

Stromgren

Members
  • Content Count

    21
  • Joined

  • Last visited

Everything posted by Stromgren

  1. Hello.. I'm working on a site where i need a pad to make my columns reach the footer on the page. Here's the site: byvejen.dk/lb2The leftcolumn cant reach the bottom, so i placed a pad behind it. The HTML looks like this: <body><div id="container"><div id="leftcolumnpad"></div> <div id="header" title="LejeBasen.dk"> ... </div> <div id="leftcolumn" class="w210"> ... </div> <div id="maincolumn" class="w750"> ... </div> <div id="footer"> ... </div></div></body></html> I styled the pad like this: po
  2. Once again youre the best dsonesuk Thanks!
  3. Hello allI found a dropdown menu which i am using in the top right corner of this site: http://byvejen.dk/lb/But after i moved the code around a bit it stopped working and i cant find the error. Im not that sharp with jQuery yet.Heres the script: <script type="text/javascript">var timeout = 500;var closetimer = 0;var ddmenuitem = 0;function jsddm_open(){ jsddm_canceltimer(); jsddm_close(); ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');}function jsddm_close(){ if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}function jsddm_timer(){ clo
  4. Thanks eTianbun It seems the name i centered right now.. But the border still wont show.I changed the .profile selector properties to this: #header .container .columns .profile {float:left; width:168px; height:45px; border-right:1px solid #f7f8f9; border-left:1px solid #f7f8f9;} I need a border on both sides.
  5. Hello. I have some problems aligning a new dropdown menu here: http://byvejen.dk/lb/transport The dropdown menu will show if you hover your mouse over the name in the top right corner.. Here's the code: Header: #header {width:100%; height:45px; background-color:#20558a; margin:0; padding:0;} #header .container {width:960px; height:45px; padding:0; margin:0px auto 0px auto;} #header .container .columns {height:45px; text-align:left; padding:0; margin:0;} #header .container .columns .logo {float:left; width:210px;} #header .container .columns .nav {float:left; width:200px; height:45
  6. Hello Im sitting here with a done flash site, but every time i update it, most browser won't show the updates because the earlier version is cached. What would be the easiest way to get around this?
  7. Stromgren

    Header margins

    Thats genius I can't really understand why a feature so simple should be so hard to create. Anyways, thanks a lot dsonesuk
  8. Stromgren

    Header margins

    Thanks a lot, i didn't knew there was such a thing as default margin Now i have en ekstra question. On this site: http://byvejen.dk/lb/faq.php i need to make the left column reach the footer.. How can i make this work?
  9. Stromgren

    Header margins

    Hello.. I have a problem with this header http://byvejen.dk/lb/home . It creates a margin to the top and the sides. Does anyone know to get rid of this? CSS Code: #header { width:auto; height:45px; background-color:#20558a; } #header_container { width:960px; height:45px; margin-left:auto; margin-right:auto; }
  10. Hello I needed an interdependent form for a website. Since i don't know any JavaScript this has been pretty tricky and i still have some problems. This is the code I'm using: JavaScript: <script type='text/javascript'>var ss2Values = [ // 'Please choose a subject' ['Please choose a category'], // '3D Printer' ['Darwin', 'Huxley', 'Mendel', 'Printrbot', 'Prusa Mendel'], // 'Home' ['Bathroom', 'Bedroom', 'Decorations', 'Furniture', 'Home utilities', 'Household items', 'Kitchen', 'Livingroom', 'Outdoor'], // 'Mechanical' ['Gears', 'Nuts and bolts', 'Tracks and bogies'], // 'Fun'
  11. Okay! So how should i go around it if i want to achieve a result like this? Thanks
  12. Hello! I just ran my site through the validator and i got this error message: Line 72, Column 24:document type does not allow element "td" here The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTM
  13. Thanks for the answer, that makes sense, but it still won't work for me.Heres what the code looks like i (tried) to make your changes: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Untitled Document</title><link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" /><script type="text/j
  14. These where my thoughts too, but i don't know any Javascript at all. How can make the onload run both initialize() and codeAddress(), and how should i define the address variable if i choose this way to go?
  15. Hello Im trying to use google maps at my site, this is the code i am using: <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script><script type="text/javascript">var geocoder; var map; function initialize() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); } function codeAddress() { var address = documen
  16. I'm running this PHP script: global $connection; $query = "SELECT titel, description, pris1, pris1_dur, pris2, pris2_dur, pris3, pris3_dur, pris4, pris4_dur, image, sub_subject_id FROM user WHERE user_id = '" . $_SESSION['user_id'] . "'"; $data = mysqli_query($connection, $query); $row = mysqli_fetch_array($data); And I'm getting this error returned: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /volume1/web/...php on line 101 Line 101 is the mysqli_fetch_array line. Can anyone spot the error? I've tested the query in phpMyAdmin and it wor
  17. I found the error: A column in the database can't be named 'by' because its also a SQL function.."by" means "town" in Danish, so i guess I'm not the first one with this problem in Denmark
  18. Thanks for the reply.. The double quotes and variables is showing because i copied from the PHP variable containing the query. It looks like this: $query = "INSERT INTO user (username, password, join_date, virksomhed, email, vej, postnummer, by, telefon) VALUES ('$username', SHA('$password1'), NOW(), '$virksomhed', '$email', '$vej', '$postnummer', '$by', '$telefon')"; This still won't work for me.
  19. Stromgren

    SQL error #1064

    Hello I have a problem with a query i just created. When i run it, it returns this error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"INSERT INTO user (username, password, join_date, virksomhed, email, vej, postnu' at line 1 "INSERT INTO user (username, password, join_date, virksomhed, email, vej, postnummer, by, telefon) VALUES ('$username', SHA('$password1'), NOW(), '$virksomhed', '$email', '$vej', '$postnummer', '$by', '$telefon')" Can anyone please help me? Thanks in advance
×
×
  • Create New...