Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wickham

Privileged
  • Joined

  • Last visited

Everything posted by Wickham

  1. If you use an image instead of a div then you can use a sprite (several images combined in one image where a different part is displayed on hover; make the img a block element).
  2. Same for me. Your codes dispay the same in Firefox and IE9. Perhaps some other part of your code or styles is affecting Firefox. throzen said "Also - study up on the purposes of classes and IDs, you seem to have mixed and matched." I don't think they cause a problem in your case because you don't have any styles for #menu (perhaps you intended to). It's a good idea not to use the same name for id and class as you may get confused.
  3. Collapsing margins can be a nuisance and difficult to understand. Here's a tutorial: http://reference.sitepoint.com/css/collapsingmargins Padding in lieu of margins, as mteam says, can be a fix if you can't sort it out.
  4. Post your php process file code. It sounds as if it's trying to return to a page url that doesn't exist. You should have something like a header ( "Location: $thankyouurl" ); after your mail function and also a variable to link to the page you want the user to see after the submit button is used. Location must have a capital L. Something like this (but it will need to be edited to suit your php code): $thankyouurl = 'thankyou.html' ; mail( $email, $subject, $replymsg , "From: $admin" ); header( "Location: $thankyouurl" ); } ?>
  5. Read this: http://en.wikipedia.org/wiki/Web_2.0 Web 3.0 definition is lower down the page.
  6. You need to think about blind people using your website; they probably use a screen reader, so would music playing on every page mean that mean that the screen reader is drowned out by audio?
  7. It's probably better to choose a forum like IP Board or PHPBB3, download and install it, then choose a theme for it and download and install that rather than attempt to design and code a theme yourself. Most forum software has themes which are coded by other people but approved by the forum and conform to rules for the operation of the forum. Like the styles for phpBB3 https://www.phpbb.com/customise/db/styles-2/ So much quicker than doing it yourself and it would have been tested.
  8. You have to edit your php.ini file in XAMPP to send from a local Windows computer. See http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html for port 25 edits. It may be hard to find in the XAMPP folder. It's better to upload to your server and test online, (automatically using your host's php.ini file).
  9. Why not omit the Home link, but have a "Sitemap" link at the bottom of the page which goes to the Home page?
  10. The only way I now that is easy to code is to use out of date frames in a frameset. You put the audio code (and a controller if you want) in a top frame which has only a little height (or you omit the top frame and put the audio in the frameset when there is no controller) and then put every page into a lower frame. The frameset (and the top frame if you have one) are constant and the pages change in the lower frame and the audio keeps playing. All links to other pages must use the target code to load in the lower frame.
  11. Do you mean password protecting one or more pages? If so, you could set up .htaccess to use a username and password (a different one for each url) using a password generator like http://www.webmaster-toolkit.com/htaccess-generator.shtml or google htaccess password protection for more info. like http://www.javascriptkit.com/howto/htaccess10.shtml#.UkPw1t5wbIU
  12. Try top: -235px; in #back in style.css instead of margin-top: -235px; which works for me making IE9 the same as Firefox. If you have a problem with IE, always code for Firefox first and then put one or two different styles (not a complete stylesheet) in a conditional comment AFTER the main stylseheet links, which you have done but it's not live, it gets a 404 not found. (However, this won't overide inline styles in the markup.) Try to avoid large negative margin-top and large negative top sizes as you may just push the problem lower don the page. I didn't check if it has done with my suggestion. Check with a validator like http://validator.w3.org/ as you have a few errors like two opening or closing >> or << in BANNER class="controls"
  13. So I now have to change all my images on all my websites as they are all 72 dpi?? That's a long job. I don't think I've got a large resolution screen either, so I'll have to check what is the largest resolution my monitor will do, or buy a new one.
  14. I haven't noticed any difference either, even with responsive design using <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> My monitor is 1366*768 18.5" so may not be as large as your's. Does it make any difference if you make the window smaller? Mozilla have also removed the Javascript toggle which I used a lot, so I had to install the noscript add-on, which is fine, but has to be set for every webpage I visit, rather than a global setting on or off.
  15. Except, please don't start a filename with a number like 1.mp3, always use a letter character like a1.mp3, a2.mp3, etc. http://webdesign.about.com/od/beginningtutorials/f/html-file-names.htm
  16. Have you uploaded them to your host's server?
  17. Copy this code without editing it and save with a new filename because it shows what I think you are trying to do: <!DOCTYPE html> <head> <title>bo newsletter 6 slots</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body{ background:#FFF; margin:0; padding:0; } .header{ background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: url(/images/headerBg.png); background-origin: padding-box; background-size: auto; border-collapse: separate; color: rgb(26, 77, 128); display: block; float: left; font-family: Arial, Helvetica, sans-serif, Calibri; font-size: 14px; font-weight: bold; height: 130px;/*118px;*/ line-height: 18px; width: 950px; background-color: orange; } .logo{ background-color: yellow; border-collapse: separate; color: rgb(153, 153, 153); display: block; float: left; font-family: Arial, Helvetica, sans-serif, Calibri; font-size: 15px; font-weight: bold; height: 80px; line-height: 18px; margin-bottom: 0px; margin-left: 5px; margin-right: 0px; margin-top: 40px; width: 295px; } .menucon{ background-color: skyblue; border-collapse: separate; color: rgb(153, 153, 153); display: block; float: right; font-family: Arial, Helvetica, sans-serif, Calibri; font-size: 15px; font-weight: bold; height: 118px; line-height: 18px; width: 450px; } .social{ background-color: lime; /*width: 50px;*/ display: block; height: 80px; line-height: 18px; } </style> </head> <body> <div class="header"> <div class="logo"><a href="index.php">Logo</a> </div> <!--<div class="social">test</div> coded after right div--> <div class="menucon"><!--not menuCon with capital C--> <!--<div></div>--> <!--<div></div>--> <div id="menu"> <ul class="sf-menu"> <li class="home"><a href="index.php"></a></li> <li><a href="knowledgebase.php"><span></span>F.A.Q's</a></li> <li><a href="announcements.php"><span></span>News</a></li> <li><a href="clientarea.php"><span></span>Client Portal</a></li> <li><a href="contact.php"><span></span>Contact Us</a></li> </ul> </div><!--end of #menu--> </div><!--end of .menucon--> <div class="social">test<br />test in .social div<br />test in .social div</div> </div><!--end of .header--> </body> I've given the divs colors so that you can see the arrangement. If you want two floated divs (one left and one right) with a div in the middle, code the float left and float: right divs first in the markup, then the middle div and the middle div .social with a lime color fills all the space between the left and right divs. Note that .social is without a width and in fact overlaps the float left div but the text content will start at the side of the float: left div. If you give the middle div a width, it will drop down unless you code that with float: left as well and put it after the first float; left div. Be careful to use the same case for style and markup, you had .menucon with a lower case c in the markup and .menuCon with a capital C in the style. You had two empty divs in .menucon which I have deleted.
  18. Your #footer and #footer p are both 30px high, so the links will be roughly central in the 30px height, the links will fit the div height. There isn't enough space for the p tag to move to the bottom. You should use a reset css like Meyer's reset http://meyerweb.com/eric/tools/css/reset/ but if you don't want to add all that css, add margin:0; padding: 0; to both styles. P tags have a default top or bottom margin, so that may be affecting the position of the p tag in the div. If you use margin: 0; you should see the links at the bottom of the div if the character font height is less than 30px excluding margin.
  19. Your CSS relates to the footer container, not the content. The "a" tags are inline elements and won't obey the bottom: 0; so I would enclose them in a p tag and then style the p tag which is a block element to show at the bottom of the div. HTML <div id="footer"><p><a href="contactus.html">Contact Us</a> | <a href="copyright.html">Copyright</a> | <a href="feedback.html">Feedback</a> | <a href="brokenlink.html">Report a broken link</a></p></div> CSS I added a height of 150px to the footer and 30px for the p tag and colors to both to show what is happening. The bottom: 0; for the #footer should put the footer at the bottom of your page and then the bottom: 0; for the p tag will put that at the bottom of your footer div. #footer { position: absolute; width: 100%; bottom: 0; height: 150px; background: # url(images/footerbackground.fw.png); } #footer p { position: absolute; width: 100%; height: 30px; text-align: right; bottom: 0; height: 30px; background: #ff0; }
  20. This tutorial sets out some general principles for HTML emails. http://css-tricks.com/using-css-in-html-emails-the-real-story/ You have some styles in a head section style tag, but this is not recommended. Put all styles inline in the html markup. Align="center" is deprecated. Use modern CSS (inline).
  21. Display: table and display: table-cell will align content with the middle vertically. Display: table is not the old table code (which should not be used for page structure). Display: table is the modern way to get elements like div to perform like the old table, ie centering vertically so content lines up in every adjacent display: table-cell.
  22. ecommerce is specialist coding, especially the security aspects, Google "ecommerce" then download and install a complete package, preferably after checking that your chosen system is good by asking others, getting references, etc. Don't code ecommerce yourself. Clients often worry about SEO, they want their site at the top of rankings on Day One, but quite honestly, they need to be patient. If the site is visited and successful, the site will move up the rankings. SEO specialists can of course speed up the process.
  23. I can get most fonts I need from fontsquirrel.com but you can add a font into fontsquirrel yourself provided you have permission to use it. http://www.wickham43.net/css3.php#font-face Fontsqirrel creates a kit which you use after uploading the font in various formats. @fontace used to be just for IE but is now supported by all main browsers.
  24. See if this tutorial helps re canonicalization: http://www.branded3.com/blogs/htaccess-mod_rewrite-ultimate-guide/ Put the .htaccess file in your host's root directory (there may be one there, so add your code to the bottom of it).
  25. In post #9 Nillervision suggested an iframe. As I understand it, the iframe needs to be there in the main page from the start, so it may get in the way, so to speak, and may be showing something all the time when you only want a popup window when someone clicks a link. robertahilljr asked for a popup window which wouldn't show in the main page. jQuery or Ajax are fine, but I often think that both use an enormous amount of code in various files. Simple old-fashioned JavaScript will do a popup window and use little code. Most people have JavaScript enabled these days. See item 3 here: http://www.wickham43.net/javascript.php#windowfixedsize and click the "here" link at the bottom of the item for an example. I tend to avoid jQuery unless I want something complicated. Edit: I've just noticed that my example opens a full-size new window in my IE10 on Windows Surface RT tablet! However, on a desktop it opens a small window over the main window as intended. Another solution would be a PHP "Newsbox" as shown here: http://www.wickham43.net/showform.php#phpnewsbox but that would show all the time. If you just want a temporary window to show some comment use a tooltip or a hover popup like these; http://www.wickham43.net/hoverpopups.php but touch screen devices like mobiles have a problem with hovering if there's no mouse (although solutions like ARIA can help by enabling a hover on touch screen devices in some circumstances).

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.