Jump to content

designergav

Members
  • Posts

    41
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

designergav's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks to bronzemonkey, the changing the numbers to letters in the class names worked a treat. I like underscores because they make it easier to read the names when scrolling through the code, also means more to anyone else (non-programmer) to amend if they want to change things later. I should probably explain that every page will use a different layout (common header/footer) hence the complicated css. I'm trying to create some reusable classes so my approach was BIG to small. This company pays for google listings so i'm not too concerned to the strictness of the validity of the css, I hope to more than make up for that with good SEO practices in terms of copy <H1> tags etc etc, we also have an SEO expert on the case so we should be okay. Thanks everyone. DesignerGav
  2. Thanks so far , I've amended the code, but now I've got further there's another problem :-\. Here's the code again. The .2column_element and .1column_element are not picking up their styles. If I paste the exact styling code as an inline style on the div declaration in the html is works fine. That suggests a typo in the name or an unclosed style above these but I can't see anything. !! Dreamweaver 'sees' the styling though, just not the browsers. !! These elements are going to be everywhere so I don't want to use inline styles for obvious reasons. Any thoughts? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { margin:0px; padding:0px; font-family:Lucida Grande, Geneva, Verdana, Arial, sans-serif; font-size:10px; line-height:13px; color:#000000; font-weight:normal; text-align:center; } H1 { display:block; font-size:20px; font-weight:bold; font-family: Myriad, Arial; color:#333333; } H2 { display:block; font-size:12px; line-height:15px; font-weight:bold; color:#333333; } .container { position:relative; width:980px; display:block; background-image: url(images/shadow_pagecontent.gif); background-repeat: repeat-y; background-position: center top; margin-left:auto; margin-right:auto; text-align:left; } .header { display:block; width:980px; height:120px; background-color:#ff6600; } .topintro { position:relative; display:block; width:943px; height:255px; background-color:green; margin:0px 18px; text-align:left; } .topintro_fullwidth_textblock { position:absolute; top:20px; left:20px; height:210px; width:475px; display:block; text-align:left; float:left; z-index:2; background-color:yellow; } .maincontent { position:relative; display:block; width:943px; margin:0px 18px; text-align:left; } .mainblock_2column_left { position:relative; top:0px; left:20px; height:300px; width:649px; display:block; text-align:left; background-color:#666666; float:left; } .mainblock_1column_right { position:absolute; top:0px; left:679px; height:300px; width:244px; background-color:#ff6600; text-align:left; float:right; } .2column_element { position:relative; top:0px; left:0px; height:100px; display:block; margin-bottom:10px; text-align:left; background-color:#ff3300; border:1px solid green; } .1column_element { position:relative; top:0px; left:0px; display:block; margin-bottom:10px; text-align:left; background-color:#cccccc; border:12px solid green; } .footer { display:block; width:980px; height:120px; background-color:#cc6600; } --> </style> </head> <body> <div class="container"> <div class="header">header</div> <div class="topintro"> <div class="topintro_fullwidth_textblock"> <h1>H1 Page Headline </h1> <h2>H2 Subhead has been operating ski & snowboard instructor training courses in the world-class resorts of Sunshine Village, Banff and <br> Big White, British Columbia, also in snow-filled Cardrona, New Zealand.</h2> <p>Our tried and tested instructor training courses have been specially designed for those on a gap year as well as those taking a career break, and all programmes lead to internationally recognised ski and snowboard instructor qualifications. Skiing and snowboarding are our passions and we want to make them yours too. </p> </div> </div> <div class="maincontent"> <div class="mainblock_2column_left"> <div class="2column_element">Life as an instructor & Course Locations</div> <div class="2column_element">Find a Course</div> <div class="2column_element">Time of your life & Trained by Professionals</div> </div> <div class="mainblock_1column_right"> <div class="1column_element">TV, Leaving soon & Questions</div> <div class="1column_element">Live Laura</div> </div> </div> <div class="footer">footer</div> </div> </body> </html>
  3. Wow. A real lesson there. I'd always learnt to use tag identifiers when defining styles as you can see. Not any more. Many thanks for your help. SOLVED
  4. Hi I'm having real trouble here. Why is IE so crap?. Anyway here's the problem. After my topintro divs there is a massive white gap, probably equilivent to the -250px margin set on the textbox div. Firefox on pc and mac is fine (no gap) i'm sure i've done this before without needed to put such big -margins in. can anyone offer some advice? here's the code: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { margin:0px; padding:0px; font-family:Lucida Grande, Geneva, Verdana, Arial, sans-serif; font-size:10px; line-height:13px; color:#000000; font-weight:normal; text-align:center; } H1 { display:block; font-size:20px; font-weight:bold; font-family: Myriad, Arial; color:#333333; } H2 { display:block; font-size:12px; line-height:15px; font-weight:bold; color:#333333; } div#container { position:relative; width:980px; display:block; background-image: url(images/shadow_pagecontent.gif); background-repeat: repeat-y; background-position: center top; margin-left:auto; margin-right:auto; text-align:left; } div#header { display:block; width:980px; height:120px; background-color:#ff6600; } div#topintro { position:relative; display:block; width:943px; height:255px; background-color:green; margin:0px 18px; text-align:left; } div#topintro_fullwidth_textblock { position:relative; top:-250px; left:20px; padding:10px; height:210px; width:475px; display:block; text-align:left; float:left; z-index:2; background-color:yellow; } div#maincontent { position:relative; display:block; width:943px; background-color:#990000; margin:0px 18px; text-align:left; } div#mainblock_2column { position:relative; float:left; background-color:#666666; } div#mainblock_1column { position:relative; float:right; background-color:blue; } div#footer { display:block; width:980px; height:120px; background-color:#cc6600; } --> </style> </head> <body> <div id="container"> <div id="header">header</div> <div id="topintro"><!-- there will be an image in here so that the text runs over it but it will be a big part of the page so no background image please--></div> <div id="topintro_fullwidth_textblock"> <h1>H1 Page Headline </h1> <h2>H2 Subhead has been operating ski & snowboard instructor training courses in the world-class resorts of Sunshine Village, Banff and <br> Big White, British Columbia, also in snow-filled Cardrona, New Zealand.</h2> <p>P. Our tried and tested instructor training courses have been specially designed for those on a gap year as well as those taking a career break, and all programmes lead to internationally recognised ski and snowboard instructor qualifications. Skiing and snowboarding are our passions and we want to make them yours too.</p> </div> <div id="maincontent"> <div id="mainblock_2column">left column contents</div> <div id="mainblock_1column">right column contents</div> </div> <div id="footer">footer</div> </div> </body> </html>
  5. Wow. how embarassingly easy. I had already tried that but it looks like I only did it in one set of if statements. It works perfectly now. Thank you so much, I now have time for a cup of tea and a biscuit.
  6. Hi, No matter what I do My radio buttons always have the value 'YES' even if I select 'NO'. I have 4 questions with YES/NO answers, users check a radio box and submit the answers to a db. These are the butttons: Did you find this useful? <label><input type="radio" name="Q1" value="yes"/>yes</label> <label><input type="radio" name="Q1" value="no"/>no</label> Would you be able to use this video in your sales cycle? <label><input type="radio" name="Q2" value="yes"/>yes</label> <label><input type="radio" name="Q2" value="no"/>no</label> Do you find multimedia references like videos useful? <label><input type="radio" name="Q3" value="yes"/>yes</label> <label><input type="radio" name="Q3" value="no"/>no</label> Would you like to see more videos similar to the B-Source one? <label><input type="radio" name="Q4" value="yes"/>yes</label> <label><input type="radio" name="Q4" value="no"/>no</label> And this checks the values: if (isset($_POST['Submit'])) { //open everything $Q1=$_POST['Q1'] $Q2=$_POST['Q2'] $Q3=$_POST['Q3'] $Q4=$_POST['Q4'] $thanks="<font color=\"#469013\" face=\"arial, helvetica\" size=\"3\"><b>Thank you for leaving feeedback</b></font>"; // QUESTION 1 if ($Q1='yes') { $insertQ1 = "UPDATE videofeedback SET yes=yes+1 WHERE ID='1' lIMIT 1"; mysql_query($insertQ1); } else { $insertQ1b = "UPDATE videofeedback SET no=no+1 WHERE ID='1' lIMIT 1"; mysql_query($insertQ1b); } // QUESTION 2 if ($Q2="yes") { $insertQ2 = "UPDATE videofeedback SET yes=yes+1 WHERE ID='2' lIMIT 1"; mysql_query($insertQ2); } else { $insertQ2b = "UPDATE videofeedback SET no=no+1 WHERE ID='2' lIMIT 1"; mysql_query($insertQ2b); } // QUESTION 3 if ($Q3="yes") { $insertQ3 = "UPDATE videofeedback SET yes=yes+1 WHERE ID='3' lIMIT 1"; mysql_query($insertQ3); } else { $insertQ3b = "UPDATE videofeedback SET no=no+1 WHERE ID='3' lIMIT 1"; mysql_query($insertQ3b); } // QUESTION 4 if ($Q4="yes") { $insertQ4 = "UPDATE videofeedback SET yes=yes+1 WHERE ID='4'v"; mysql_query($insertQ4); } else { $insertQ4b = "UPDATE videofeedback SET no=no+1 WHERE ID='4' lIMIT 1"; mysql_query($insertQ4b); } } Then I need to increment the db field by 1. It is a running total of answers. The fields are ID, Question, Yes, No. So line 1 would be 1, Did you find this useful?, 67, 13 (for example) Can anyone help?
  7. I guess not. How ironic, the SEO wasn't good enough for me to find it.
  8. can anyone help? a while ago i found a great little online free tool that analysed your url and told you how well the keywords, page titles, etc performed and if there was too much repetition, too many characters, etc. it was very useful but i'm lost the link. it was provided on a tools page from an seo company, quite a basic design style with results shown with red or green numbers for good/bad results. it had a professional sounding name not one of those seo4u.com type names i'd really like to find it but googling hasn't found it. can anyone help. thanks designergav
  9. I get the same GCI error as with fopen. Well I'm off to today. I'll have to pick this up at a later date. Thanks for everyone's help today especially you Balmung-San. No doubt I'll be back in this thread soon. If anyone finds the answer before me. Let me know. Gav
  10. Well. I'm officially baffled. How can it find /myfile.csv but not http://www.mysite.co.uk/files/myfile.csv I'm all out of ideas. I though about saving the file to my site but to access the file and save surely I'll have the same problem with http as don't i need to "read" it to save it? Could cgi scripts help here and how would I go about using them?
  11. Hold the phone. UPDATE: If i use an asolute link to the file based on the path shown in my error message: /home/fhlinux185/a/mysite2.co.uk/user/htdocs/myfiles/file_to_read.csv it works. Now all I have to do is find out what the equivalent path would be for the actual location of the real file. Does this look like it would would in real life? NO GUESS NOT. If I move the php file but still refer to that location for the file to read it doesn't work. I suppose because the path is only relative to the php file not an absolute path to the file on the server
  12. I will be provided a csv file daily which has 200 currency exchange rates. I need to get them from that csv file into a mysql table to pull into a website as part of dynamic content. This needs to update the rates every day The file is licensed and I can only request it once a day and I cannot do anything other than read/save the file. Obviously I'd like to automate the process so that windows scheduler or cronjob can run the php script automatically.
  13. mysite2.co.uk is hosted on a stricter webhosting companies server so I imagine many of the settings required are turned off for security and I know from past dealings that I can't change anything on their server. I think this may be a dead end. Oh well.
  14. Well. PLAN C anyone. I now get these messages: Warning: filesize(): Stat failed for http://www.mysite2.co.uk/myfiles/file_to_read.csv (errno=2 - No such file or directory) in /home/fhlinux185/a/mysite2.co.uk/user/htdocs/myfiles/test.php on line 11 Warning: fread(): Length parameter must be greater than 0. in /home/fhlinux185/a/mysite2.co.uk/user/htdocs/myfiles/test.php on line 11 Column count doesn't match value count at row 1 Doesn't seem to find the file to read. Column count error is because the contents of the file form part of the INSERT. the files are there because I can type the direct url to both the test and csv files and see them.
  15. ISVWEB appears under the name _ENV["COMPUTERNAME"]. Server software is Microsoft IIS/6.0. Yes there is an ftp server for the website but I believe it runs on a seperate server. The file I need to read is a licensed file that is accessed via a HTTP GET request and unfortunately I have no control over that so can't use ftp. It's starting to look like I might need to rethink things. I have another website www.mysite2.co.uk that lives on a linux server and is just a host for the mysql db for www.mysite.co.uk I could try moving the files there and seeing what happens. It may solve the problem and as the db lives there might make it easier anyway. I'll try that and see what happens. Thanks for your help and I'll let you know if it works. Gavin
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.