A note for myself after spending some time working out how to make a top menu bar on a website resize both the menu items (<ul><li> elements) and the font within the menu item as the screen width scaled.

The first bit was easy, istead of using a fixed size (120px) for the width of the <li> elements make the container element a percentage width of its parent - say 95% - and then if there are five menu items at the top (horizontal) level make the <li> width 20% (or whatever is appropriate for the number of entries in the top menu bar).

Tags:
Css:

Frank wasn't referring to digital cameras because they didn't exist then, but the current tendency of camera marketeers to try and outgun each over on number of megapixels brought it back to mind.

Tags:
Hardware:

Time was before the days of "smart" phones when it was standard to be able to sync your contacts between your computer and your phone, and possibly even your SMS messages and calendar. Been doing this since my first digital Nokia in 1994.

It was always a bit flakey and dependent on having the right cable and on the phone manufacturer (usually) providing software to run on the computer (PC or Mac). There were some third party utilities that worked as well and were generally better than the phone makers' offerings which tended to be clunky at best.

Much time spent today grappling with the problem of applying a style to a file upload control on a website. The site application is ASPX pages with code behind in VB. The button controls on the rest of the site (whether asp controls or straight html) are styled with CSS. The new page I was adding as well as various other controls also needed to have the ability for the user client to upload a local file to the server, and then there would be some backend processing happening server-side.

It turns out that there is no simple way to apply a style to the button on an HTML Input type File tag - not surprising since the selection box and button are created client-side by the browser, and in fact different browsers implement it differently. The asp File Upload control is rendered on the client as a standard HTML Input tag with type=file, so even setting the CSSclass attribute doesn't really give you any flexibility. I wanted to be able to independently colour and position both the text box and the button.

Tags:
Vb-net: