Everything posted by Wickham
-
Dropdown and flyout menus on touch screens
I had noticed that my pure css dropdown and flyout menus on touch screens were unable to link with the dropdown or flyout levels because you can't hold your finger on a top level link and click a lower level at the same time. However, HTML5 has a solution using ARIA http://msdn.microsoft.com/en-us/library/ie/jj152135(v=vs.85).aspx and a tutorial here:- http://stackoverflow.com/questions/3474099/what-is-html5-aria which works on my sites, but I suppose a browser needs to be HTML5 compliant. Old browsers are unlikely to be on touch screen computers. I expect that javascript dropdown and flyout menus won't need this, but I'm not sure.
-
How to learn PHP?
You can learn a lot from online tutorials, PHP is often used with a database but as said above, use mysqli not mysql so check that a tutorial is up to date. http://www.tizag.com/phpT/index.php (mysql is out of date but PHP tutorial is useful). http://www.w3schools.com/php/php_mysql_connect.asp (uses mysqli) You will need the php.org manual http://uk.php.net/manual/en/getting-started.php for detailed codes and also the PHP function list http://uk.php.net/quickref.php and the operators http://php.net/manual/en/language.operators.php
-
Microsoft Surface Pro and RT tablets
I've got a Windows Surface RT tablet with IE10 and Win 8 for use in my chair watching TV. It's useful for browsing and emails but the Arm processor means very few programs can be installed, although it does have Excel 2013 and Word 2013 and Powerpoint. The Surface Pro is now on sale with an Intel processor but is thicker, heavier and with less battery life but you will be able to install other programs like Firefox, Photoshop, Outlook, etc. I got the RT version last October for an early look at IE10 and W8 with a touch screen at half the price of a desktop with W8 and Excel and Word so that I could sit in my armchair and use it there. It does what I want. If I need to do anything serious I go to my W7 desktop. The Surface RT (or the Surface Pro with Word, Excel and Powerpoint at extra cost) is OK to take to a meeting with a client to show him something, either images or a Word or Excel document, and doesn't take up much space in a briefcase. They both have a "modern" UI with cut-down programs for quick and easy use and also the conventional desktop that looks like W7. It's much easier to use the desktop UI with a mouse there is a usb port. Comments on the Surface Pro are here:- http://answers.microsoft.com/en-us/surface/forum/surfpro-surfusingpro/first-week-thoughts-about-the-surface-pro/9309cf12-47c5-4c19-84a5-02c714b0210d The battery life for the Pro is only 4 hours, half that of the RT version I have, but apart from that, people seem happy. It doesn't come with Word 2013, Excel 2013 and Powerpoint 2013 which the RT version does have, so the RT version is fine for me as a second computer at half the cost of a touch screen ultrabook with W8 and Word, Excel and Powerpoint.
-
Drop down menu for form
Here's an alternative from Dynamic Drive http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm It needs javascript.
-
fitting a webpage to browser vertically using percentage heights?
It's always best to avoid using height: 100%; or even max-height: 100%. There will be problems in different resolutions because I think the resolution height includes the space taken up by browser menus at the top and the height of these varies with different browsers. It should work with full screen display, but not many people use this and if people are using a smaller window than the resolution there may still be problems. However, height:100%; is used for "sticky footer" codes. Google that term to see examples.
-
Float and box shadow problems
You haven't moved the img up between the h2 tag and the ul tag yet. I haven't got the time to look at your shadow problem yet, I'm afraid.
- Why is Blue used in design?
-
Float and box shadow problems
It seems to be working in my Firefox, but I don't like the -230px top margin that you have for the image. You shouldn't need to do this. You have coded the image with float: right after the left content, so you need to drag it up. If you code it first, after the h2 tag, you won't need the -230px. t You ought to give a floated element a width and height, ie for the image #mainphoto, although it works OK without as the image doesn't need resizing, but you should do. img#mainphoto { float: right; margin: 0 20px 0 0; /*margin: -230px 20px 0 0;*/ } <div class="wrapper maincontent"> <h2><img src="images/heading_detail.png" alt="scroll detail">Our Values<img src="images/heading_detail.png" alt="scroll detail"></h2> <img id="mainphoto" src="images/pizza-4.jpg" alt="main photo"> <ul id="bulletpoints"> <li>Constantly searching for new italian flavours</li> <li>Freshness and expertise gained from over 4 decades of experience</li> <li>Rigorous in the selection of suppliers and produce ensuring compliance with food safety procedures.</li> <li>Our priority is the satisfaction of our customers, for both taste and service.</li> </ul> <a class="css3button" href="">more</a> <!-- moved up above content <img id="mainphoto" src="images/pizza-4.jpg" alt="main photo">--> </div><!--.wrapper-->
-
How to remove white line between header and navigation?
I can't give you a proper reply without seeing the website live, but you can often use a negative top margin to drag a lower element up, but that would be a fudge.
-
My HTML will not validate
If you mean -webkit-box-shadow and others, don't worry if they don't validate. However, you can check whether they are still required for your particular style here http://caniuse.com/#index as some browsers have updated and don't need a prefix now for some styles, but will still require them for other styles. See http://reference.sitepoint.com/css/vendorspecific
-
Margin and CSS?
In addition to the above link this will need careful study: http://www.w3.org/TR/CSS2/box.html One basic rule to remember is that if you have a background to an element (like a div) the background will show in the padding around it but not in the margin around it. There is also a double margin bug applicable to IE6 but I shouldn't worry about that now as IE6 has so little use. Essentially if you have a margin on the same side as a float, ie float: left and margin-left or float: right and margin-right, IE6 will double the margin on that side.
-
Top 5 designer tips for beginners
Know your client's likes, dislikes, temperament, what he/she is looking for, what sites they like. Know the target viewers. Know how to make good images for the web. Know at least a little web development. Go on a design course. [Learn how to spell - beginner not begginer] @ Wickham, i've edited the title. - Ben
-
Advice on hosting
I've been with Dataflame http://www.dataflame.co.uk/index.php for several years, no problems of their making, just confusion on my part which got good help. They use cPanel which is well known and Linux. Their office is close to me so I could knock on the door if I have a serious complaint! D102 with 5 databases looks reasonable value at £5.99pm. Are there any cheap hosting packages that give unlimited disk space?
-
Should I use a CMS?
Well, I suppose there's no harm in trying since any problems will only affect you, but prepare for spending a lot of time.
- 10 replies
-
- cms
- which cms
- cms choice
- wordpress
-
Tagged with:
-
Problem with my css menu and Its color
I ran it through the validator http://validator.w3.org/ and it showed several major errors and gave up validating at a certain point. "Cannot recover after last error. Any further errors will be ignored." Sort these first, then look closely at the css file (there's a validator for that too http://jigsaw.w3.org/css-validator/
-
Problem with my css menu and Its color
I can see where you're coming from, but I think your stance is a bit OTT. There are certainly times when you've used an id and then want to use it again on the same page, so have to edit the markup and css to a class. However, I think it's still a good idea to use an id in a global sense, like for a nav, then you can have a #nav id and classes for markup within the #nav - and then a different id for say #footernav and use the same classes within that, which will take the global styles from #footernav instead of #nav
- Quite frustrating
-
WDF Quick update: February 2013
Where are the Forum Rules for newbies to read, explain the 25 post rule, etc,? Am I blind? It should be easily seen on the homepage before someone visits a board.
-
More CSS Help
Try adding clear: both; to the style for #footer. It's only one of several methods to clear floats.
-
Remove Flash if on iphone or ipad?
Sash, do you mean put the flash file link in a div with an id or class, then make the id or class display: none; in media queries, or is there a more direct method?
-
Naming Index Page(s) and Navigation Menus
I only put index files in the root directory, unless one of the sub-directories is an add-on domain (ie a completely different website) when I put an index file there too. If you don't put an index file in every directory you should disable indexing. Look in the control panel of your host's server for a tab called indexing or similar and disable indexing for every directory. If you don't and someone enters something like www.your-domain.com/accounts in their browser window (ie no filename) the viewer will be able to see an index of all your files or images which could allow them to open private information. You can use a PHP "include" file which inserts the same markup in lots of pages. Open up Notepad or a text editor (not Word) and cut the code that repeats in every page completely (as much or as little as you want, without doctype, html, head or body tags) and paste it into Notepad and save as an "include" file called menu.inc in the same folder as the main pages. You then have only one file to edit if the menu changes. Substitute the code you have cut out with PHP code <?php include ("menu.inc"); ?> in the main file and save it with .php filename extension instead of .html or .htm. Do the same with other main pages where the menu repeats and name them with .php extension. You can use .txt, .php, .html or .htm for the "include" file but it distinguishes it as an "include" file in your file list if you use .inc as the filename extension and it's even better if you put all "include" files in a different directory/folder. You will have to edit the path to suit each page like <?php include ("../includes/menu.inc"); ?> if your main pages are in different sub-folders from the include file, but once set up you won't need to edit it unless you change the folder that the main page is inside. If you use a complete page as an "include" file with .html or .htm for the filename extension the final processed page will have two doctypes, two html tags, two head sections, etc. in an unusual place which is not a good idea so only put the menu code (say the li tags if formed as a list) in the menu.inc file. You can have different "include" files on the same main pages for header and footer and even use "includes" for the parts of the head section that repeat. NOTE. You won't see the "include" file inserted when you look at your main pages locally. The PHP code needs to be processed by a server before the result can be seen, either by the hosting service's server just before downloading or by a server like WampServer 2 or XAMPP (which includes Apache) on your computer for local viewing. Check that your hosting service supports PHP or SHTML as free webspaces provided by ISPs usually do not. See Highlight current page here using matched pairs (items 2 and 3) or PHP (item 4) http://www.wickham43...ghlighthome.php Item 1 is the way NOT to do it as you can't put that method in an include file to repeat on lots of pages.
-
Button rollovers in html5
Google javascript rollover effects
-
Tooltip
Google javascript tooltip or jquery tooltip. Both will mean downloading some processing files and the markup and you insert your image link. You would code each person's profile individually with a different flag image. To select different flags automatically you would probably need a database with a field for the country (or a link to the flag image) then select that field with php from the profile or from an input form where you enter each person's data. You can do basic image tooltips with CSS (no javascript) like item 3 here (just edit the style using a background image and omit the markup text but leave the empty span tags):- http://www.wickham43...hoverpopups.php
-
Responsive Web Design / Website that Re-sizes Depending Upon Browser
Always make the top level of a drop down menu has a link to go to a page where the drop down links are shown as ordinary links, and/or have a Site Map link which goes to a separate page with a full list of links.
-
Media Queries/Responsive Layout best practices discussion
You don't need to use different stylesheets. The media queries probably only affect a few styles so you should be able to code them in the same stylesheet. You can code for desktop first using max-width or mobile first using min-width. This is a tutorial for mobile first:- http://www.html5rock...espeed=noscript So you would code for a narrow width resolution and have media queries at the bottom of the stylesheet for wider resolutions. Where the tutorial says "Large screen styles first - Avoid" and uses max-width, it means avoid this method and use the example below it.