Help With converting px to em...

So, I thought that I would have a go at converting a site from all px to em to help with accessibility and using browser zoom.  I wish I'd never started!
This is how I approached it.
     1) Set my font to 100%
     2) Change all font sizes to em
     3) Feel smug
     4) Notice that after a couple of ramps up on the zoom the layout goes pear-shaped
     5) Change all width/height dimensions to em
     6) Change all padding/margin dimensions to em
     7) Feel a little tearful
     8) Realise I don't have a back-up style sheet
     9) Re-draw WWW domination plan
     10) Start to make a little progress
     11) Try out the negative zoom
     12) See that screw my layout - don't understand it
     14) Add some min-width/min-height rules
     12) Feel a little tearful...
     13) Came here to be with friends
I worked out I think, that using flexible units in a fixed environment is going to cause problems.
I'm having trouble with layout more than text-size.  I think the only thing that will cause me grief with text-size is with nested element and the way that em is inherited but, the site is quite straight forward, apart from a few floated elements.
I thnk my main problems are with the layout:  Images, background images and how to approach the whold width/height thing.
Martin
PS I won't be at my PC for a while so, if  you respond and I don't come back to you, it's not because I'm not interested.  I'm too ashamed and confused to post a live page!

Hi Martin
The one thing that confuses people when converting from px to em units is that they think px is a fixed size and em's are flexible, which unfortunately is not true, and just to confuse things even more Microsoft even treat px's as a relative size, (this is actually correct if you look at the css1 spec).
The best advice I can offer is to start with the layout when converting to em's and worry about the font etc. later, because as they say a pixel is relative.
PZ

Similar Messages

  • Help with converting a Nero file

    I have previously converted a dvd insert designed with Nero into a pdf using adobe acrobat in order to send to someone else.  When I tried to do the same thing today with a new Nero designed insert the conversion wouldn't work.  The message said adobe didn't support the program that created the file.  Any ideas?

    thanks for your response.
    When I create a dvd insert or cd label etc using Nero the file extension is nct - nero cover template.  The printer wants the file as a pdf as he can't open Nero files.  I have version 9.3 of acrobat.
    Date: Mon, 18 Jan 2010 21:43:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: help with converting a Nero file
    Nero is simply a CD/DVD burning application and should have no effect on the type of files that will eventually be on the CD/DVD.
    What type of files are you trying to convert and exactly how are you trying to convert them? Plus, it would help to know the version of Acrobat you are using.
    >

  • Please Help with Converting PDF document to Word Document

    I have downloaded our PDF document to be converted to a word document --- it did not work correctly--we need help with this
    Scott Munsen
    Abbott House -- Mitchell, SD

    Good day Scott,
    I received your document via our File Conversion Issue form.  The root of the problem you're facing is the quality of the scan.  I'm not sure if you were starting with a poor quality hard-copy or simply low DPI settings on your scanner, but the reason the results you received were so different than the PDF was the quality of the input.
    If you're hard copy looks clearer than the PDF file you created, I would suggest increasing the resolution settings on your scanner.
    Please let me know if you have any questions.
    Kind regards,
    David

  • Help with converting FLAC to ALAC while retaining metadata and cover art

    Hi,
    I've decided to embark on the long trek to convert my 18k+ FLAC music library into ALAC. I've decided on ALAC for mainly 2 reasons: iTunes/iPhone/iMac/Sonos compatibility and my desire to keep with a lossless format.
    My library is pretty eclectic; I have quite a bit of classical music along with many other genres. I have spent quite a bit of time maintaining the correct tag information; I do not want to lose any of this info that I've painstakingly added to my library over the years. The tags that I use on my FLAC files are:
    Filename
    Title
    Artist
    Album
    Album Artist
    Disc Number
    Disc Count
    Compilation
    Comment
    Year
    Genre
    Track
    Composer
    Orchestra
    Conductor
    Performer
    Length
    Modified
    Path
    I want to be especially sure that I maintain the data in Composer, Orchestra, Performer and Conductor in my migration to ALAC. I also want to include my CD art in each track (many of which I had to scan since some of my CD's are not available for sale). The CD covers are stored in a "folder.jpg" file in the path of each CD's contents. I would really like the automated conversion process to pick up each "folder.jpg" and embed it in the appropriate tracks.
    I have a license for dbPowerAmp, so I can do the conversion on the Windows side if need be (I have BootCamp set up and use Fusion), but I would prefer to do everything in Mac.
    I am hoping that some of you good folks will offer up comments about the feasibility of this endeavor, and advise me on possible tools to use, paths to take, pitfalls to watch out for, etc.
    Thank you for your time.
    Mike

    I finally got done with the conversion. It took 2 weeks running XLD of 24x7, but at last it's over with.
    I first used iTunes "download missing album art" to start the process. It populated about 50% of my collection, but I found that many of the album art was wrong. For instance, with collections (various artists) it populated the album art from the first track; with others, it put in the wrong album cover for the right CD. These were mostly because iTunes would get a contemporary cover, where my cover was from an older pressing of the disk.
    I purchased a program called TuneUp which has helped with my missing album artwork, and also with correcting typos. But even with using TuneUp, I probably have a couple of weeks worth of work left to do.
    Then comes the renaming of the Classical music tracks.
    Mike

  • Help with Converting an Access query

    Hello:
    First time poster and would appreciate some help in converting this Access query into T-SQL so I can use in a Stored Procedure. I don't need help in resolving the syntax for the variables as parameter in the second query, but stuck in writing the first query
    in T-SQL . I assume I need some type of nested query with a left join to another query in T-SQL. 
    How do I convert this from Access into MS-SQL
    SELECT TBL_MONTH.L_Month, TBL_MONTH.L_MonthName
    FROM TBL_MONTH LEFT JOIN qry_MonthCheck ON TBL_MONTH.L_Month = qry_MonthCheck.L_Month
    WHERE (((qry_MonthCheck.L_Month) Is Null));
    qryMonthCheck in Access is defined as
    SELECT TBL_MONTH.L_Month, TBL_SIGNOFF.SO_YEAR, TBL_SIGNOFF.SO_USER, TBL_SIGNOFF.SO_LOCATION
    FROM TBL_MONTH RIGHT JOIN TBL_SIGNOFF ON TBL_MONTH.L_Month = TBL_SIGNOFF.SO_MONTH
    WHERE (((TBL_SIGNOFF.SO_YEAR)=[forms]![frm_signoff]![cboyear]) AND ((TBL_SIGNOFF.SO_LOCATION)=[Tempvars]![tmpVarUserLOC]));

    It is very much up to personal taste. For tables I use no prefix at all. Or suffix. I prefer plural: categories, products, etc. For junction tables, I drop the plural in the first entity, for instance productcategories. As for the case, many people prefer
    initial uppercase, while I go for lowercase only. But initial uppercase has its points, particularly in documentation. I am a staunch advocate of using case-sensitive collation for metadata. I don't see any point in mixing productcategories, Productcategories,
    ProductCategories etc. That can only cause confusion.
    As for either entities, I don't use views much, and I don't have any prefix for these either. In fact, several views I've been involved used to be tables once upon a time.
    If you want to add a marker to the object name, I recommend using a suffix. It is much easier to find objects in the version control system and other browser, when not everything is cluttered on the same letter. For instance, I typically add _sp at the end
    of stored procedure names.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Help with converting hex to date and time

    Hi!
    I am using snmp4j libraries to walk the mib tree. The system date is getting returned in 11 hexadecimal octets. I require help in converting it to date and time. I looked up the RFC convention of what each octets represent. Require help with conversion.
    Eg: 07:db:06:0a:29:1d:00:2b:05:1e
    Thanks,

    Octets Contents Range
    1-2 year 0..65536
    3 month 1..12
    4 day 1..31
    5 hour 0..23
    6 minutes 0..59
    7 seconds 0..60
    (use 60 for leap-second)
    8 deci-seconds 0..9
    9 direction from UTC '+' / '-'
    10 hours from UTC 0..13
    11 minutes from UTC 0..59
    For example I just took the time an hour ago it came out as
    07:db:06:13:12:11:1a:00:2b:05:1e
    I have to convert this as a date long value to send it.
    Do I have to write an utility of my own to do it?

  • Help with converting array of sentences in to array of words.

    Hi! I'm having a problem with converting an array of sentences (about 50) into 1000 separate words into an word array. No use of tokenizers, classes (pre-made) just clear proggramming.
    Thanks in advance!

    Until you come up with a question, check these out:
    http://java.sun.com/docs/books/tutorial/
    http://java.sun.com/learning/new2java/index.html
    http://javaalmanac.com
    http://www.jguru.com
    http://www.javaranch.com
    Bruce Eckel's Thinking in Java
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java

  • Need help with converting date format to decimal in SSRS expression.

    Hi all,
    I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.
    The TMDTOP column is the decimal data type with date records in yyyyMMdd format.
    My return parameter is the following:
    =IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd"))) 
    When I try to run the report I get the following error:
    Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)
    I appreciate if anyone can help me on solving this problem.
    Thanks in advance.

    why casting date to decimal here? Can you explain?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Oracle SQL HELP with convert GMT to EST and DST and Date offset

    Hi, I have a query that does not seem to work trying to convert a date field that is in GMT to est and using extract(timezone_hour FROM TO_TIMESTAMP_TZ as an offsetr
    HEre is my sql
    dtl.start_dt_gmt + (extract(timezone_hour FROM TO_TIMESTAMP_TZ( dtl.start_dt_gmt,'DD-MON-YYYY HH24:MI:SS TZH:TZM'))/24 ) START_DT_Local
    If the date (dtl.start_dt_gmt) is may 1 and gmt starts at 04:00 AM , the extract offset produces -4
    However, if the date (dtl.start_dt_gmt) is Feb 1 which begins at 05:00 AM GMT, the date offset still gives 04. What am i doing wrong? Any help would be appreciated. Thanks.
    Saul

    If your data is not associated with timezone then you'll have to use something like
    case when dt between A and B then dt-1/24 else dt end; <-- This will give you 1 hour back of EDT. So, as far as concern at database level, it is nothing to do at db level, because db is used by application, so you need to code in the app.
    Oracle never actually changes a TIMEZONE column value when you set your system to be on daylight savings time. There are several built-in DST DATE conversion functions for changing to daylight savings time:
    current_date
    current_timestamp
    localtimestamp
    dbtimezone
    sessiontimezone
    extract
    from_tz
    to_timestamp
    to_timestamp_tz
    to_yminterval tz_offset
    http://dba-oracle.com/t_oracle_daylight_saving_time_dst_date_conversion.htm
    Regards
    Girish Sharma

  • Help with converting WMV files to quicktime movies for video ipod.

    Is there a way to convert my movies that play with the windows media player to a movie file that Quicktime Pro can use to export to my video ipod?
    I am running windows xp, can anyone help??

    File size is dicated by the bitrate of the file. From my review of (thousands) of WMV files there appears to be some compression in the WMV format that is not reapplied when save as to a MOV container is performed. You can see in get info the WMV file say 100MB has maybe 125-150MB of data when it is fully loaded in Quicktime.
    Thus save as does not apply the WMV compression the same as native WMV is all I can assume and the new QT file (MOV container) is bigger than the source file is.
    Exporting to any new QT format (say H264) is going to make a file that is dependent on the new QT bitrate you select but if it is higher than the bitrate shown in the Get Info Inspector box when the original WMV has been opened it will be bigger without a doubt. So if you have a 3Mb/sec WMV file that you export to 700 kb/sec for iPod basic it should be 1/4 of the size. Use 5Mb/sec fo Apple TV it should be 2/3 larger.
    I rarely use QT Pro to export and when I do I don't use default settings. I prefer MPEG Streamclip which offers easier control of variables, batch file processing, deinterlacing and other things and it is free.

  • Require help with converting a wim file to a vhd file using WIM2VHD

    I would like some assistance in learning to actually start the wim2vhd command line tool? I have been supplied an script to go with it but am unsure how to open the whole program? I am required to convert a wim file into a vhd file for a task on a project
    but cannot do so without this tool and am having troubles in struggletown trying to complete the task? have been trying to complete this for about a month with holidays in the middle.
    Any help is muchly appreciated.

    Wim2VHD is not a Windows 7 file, feature, nor utility.
    It is a utility supported by MSDN.  Suggest you find the appropriate MSDN forum to post in.  See info @
    http://archive.msdn.microsoft.com/wim2vhd about Wim2VHD.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Help with converting a PDF file to excel

    I tried to convert my PDF credit card statement to excel but it says the file is password protected.  I did not set it up as a password protected file; it came from my on-line banking site.  Can anyone help?

    You must be using the subscription service with Adobe Reader (ExportPDF)?
    If so, you would need the password for the pdf. The bank may have (automatically) added a password preventing any changes. That would need to be removed first.

  • Need help with converting characters to ASCII code

    Hey. Im trying to write a program to make Caesar Ciphers by random numbers. This cipher must also wrap from front to end of ASCII code, so that if, for example, the character being ciphered is Z and its being modified by +3, the result ciphered character is not "]", but "c".
    Im planning on reading the text that the user inputs (using ConsoleIO) into a string and then seperating each character into a character[]. Then, i would like to find the ASCII code of each character and print out the ASCII code character of the old ASCII code + the modifier.
    So far, this is what i have (sorry for the length, i like to space things out so that its easier on the eyes and more organized... X-( ... ):
    public class EvanFinalB {
         static ConsoleIO kbd = new ConsoleIO();
         static String enteredPhrase;
         static int phraseLength;
         public static void main(String[] args)
              System.out.println("Enter a phrase and this program will cipher it into a secret message.");
              System.out.println("/nEnter your phrase here:");
              //read phrase
              enteredPhrase = kbd.toString();
              //find length of entered text
              phraseLength = enteredPhrase.length();
              //declare arrays for the individual characters of the entered text and the ciphered characters
              char[] enteredChar = new char[phraseLength + 1];
              char[] cipheredChar = new char[phraseLength + 1];
              //loop converting of entered text into seperate characters
              for(int x = 1; x <= phraseLength; x++)
                   enteredChar[x] = enteredPhrase.charAt(x);
                   cipheredChar[x] = cipher(enteredChar[x]);//call cipher() method to find new ciphered character
         //wrap from front to end of ASCII code
         static char cipher(char enteredChar)
              //choose random number to cipher message by
              int modifier = (int)(Math.random() * 26) + 1;
              if(enteredChar + modifier > 90)//90 is the ASCII code for "Z" which is the last capital letter
                   cipheredChar = (97 + (modifier - (90 - enteredChar)));//97 is the ASCII code for "a" which is the first lower case letter
              return cipheredChar[1];
    }The program is obviously in its early stages but (i started creating it today actually), if there is a simple method or anything that i can use to find the ASCII value of a character in order to use enteredChar so that 'enteredChar' is equal to the ASCII code of the new ciphered character, please help me out...Thanks
    P.S. If there's an easier way to go about creating a program for Caesar Ciphers, let me know.

    The following code is from my Java textbook Big Java by Cay Horstmann. It is not my code and it's just to guide you in your own cipher.
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.IOException;
       This class encrypts files using the Caesar cipher.
       For decryption, use an encryptor whose key is the
       negative of the encryption key.
    public class CaesarCipher
          Constructs a cipher object with a given key.
          @param aKey the encryption key
       public CaesarCipher(int aKey)
          key = aKey;
          Encrypts the contents of a stream.
          @param in the input stream
          @param out the output stream
       public void encryptStream(InputStream in, OutputStream out)
             throws IOException
          boolean done = false;
          while (!done)
             int next = in.read();
             if (next == -1) done = true;
             else
                byte b = (byte) next;
                byte c = encrypt(b);
                out.write(c);
          Encrypts a byte.
          @param b the byte to encrypt
          @return the encrypted byte
       public byte encrypt(byte b)
          return (byte) (b + key);
       private int key;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Scanner;
       This program encrypts a file, using the Caesar cipher.
    public class CaesarEncryptor
       public static void main(String[] args)
          Scanner in = new Scanner(System.in);
          try
             System.out.print("Input file: ");
             String inFile = in.next();
             System.out.print("Output file: ");
             String outFile = in.next();
             System.out.print("Encryption key: ");
             int key = in.nextInt();
             InputStream inStream = new FileInputStream(inFile);
             OutputStream outStream = new FileOutputStream(outFile);
             CaesarCipher cipher = new CaesarCipher(key);
             cipher.encryptStream(inStream, outStream);
             inStream.close();
             outStream.close();
          catch (IOException exception)
             System.out.println("Error processing file: " + exception);
    }

  • Help with converting dvd to ipod

    I got Lenogo software and it def. works getting my DVD to my ipod. My question is I am try to download Sex and the City to have all the episodes on my ipod and maybe some other things I own that are episodes. Is there a way to burn them so I can put in episodes by episode rather than one big chunk of video? I actually think I am having a problem with it even converting a big chunk, I really would like the option of pivking what episode I want to watch without having to go through a long piece of video. Any help and suggestions is appreciated, thank you!

    I use dvd decrypter though you may find it hard to come by since they were just bought. Then I use a program called Xilisoft (www.xilisoft.com) to convert. I convert to psp format as they share the same format (the psp requires you to have a .thm file as well). IF you want your file to be one movie file instead of individual .vob files, you will want to change you use DVDDecrypter the mode to ifo.Then you will want to right click on the pgc file on the right and go down to file splitting and select none. After that you need to click on stream processing and enable it. Deselct all options except for the top 2 (usually video and audio - you can play around with the audio but I find those 2 to be best. Xilisoft is self explanitory but if you can't figure it out, I suggest you Google it.
    Remember, it is only legal to back up your own DVD's.

  • Help with converting an .aac file to .mp3!

    Is there anyway in iTunes to convert your entire library into a .mp3 file without it creating duplicates? Or is there a way to make it create the duplicates and then select every other song to easly get rid of the older .aac file?
    Thanks for your help!!!

    Would this work for me...? My problem is that I have about 6000 .WAV songs I've put from all my CD collection into my external 400 GB drive library. After a year of using my computer as a jukebox, I also decided to get an Ipod Shuffle, and would like to periodically put MP3 formatted songs on it from my library. So far, I've been 'converting' them in Itunes to mp3 (keeping the wav's of course) then smartlisting (by size) the mp3's into a playlist to put on the Ipod. The problem is that even though the mp3s are small, I don't want to use up disk space on the external drive for those essentially duplicate and only temporarily needed files. I know I can delete them manually after putting them on my Ipod, but that's lots of chances to accidentally delete a wav by mistake or otherwise screw up and waste time.
    I'd really just like to create a separate physical place on my internal drive as the 'destination' and then convert a few hundred (or even all 6000!) of my wavs to mp3 into that directory, then go back to using the external (main, 'wav')library for any new CD's I import. Can this be done without somehow screwing up the main library data file, and will I still be able to consider that my external drive has all the information which goes with the .wav files so that if I copy everything on it I've truly done a backup? (I don't care if I lose the mp3's, as they are only transient en route to the Ipod). I wish I could set Itunes to keep everything on my computer in .wav, and convert automatically to mp3 when loading my Ipod...!
    Any help would be appreciated. Thanks.
    generic   Windows 2000  

Maybe you are looking for

  • Acrobat X - Print to Edge without Margin

    Using Acrobat X Standard and Microsoft PowerPoint, I'm trying to print a pdf where there isn't any margin (also for Word docs).  I've tried "Scale to Fit Paper" but that leaves a slight margin on the top and bottom.  I'm basically trying to print so

  • Belkin   Time Capsule   Airport Express   PLC

    I allready have a modem router Belkin, a Time Capsule and an Airport Express. The problem i have is that i have a many meters from the Belking and Time Capsule to the saloon (Airport Express). Can i buy an PLC and use it with my network connection???

  • Convert VARCHAR to date - don't know format in advance

    Hi, If I want to convert varchar to date, but I don't kniow the format of the varchar in advance. For example, it may be '20-MAY-99', '2009-01-10 10:01:00', but it is not known in advance. How can I convert it to date? Many thanks

  • COM_PARTNER_BADI is not trigger during CHANGE

    I can determine the Manager partner function by using BADI COM_PARTNER_BADI method DETERMINATION_ADD_IN_1. However, if the user changes the partner function, Manager need to be redetermined. The problem is, This BADI is not getting triggered during C

  • Is a switch from imovie to FCE HD with 10.3.9 OK? Or do I need Tiger?

    OK, finally looking to switch from imovie to FCE, but have reviewed many posts regarding compatibility with Panther vs. Tiger, and I've been through the QT7 upgrade mistake with 10.3.9, and then went back to QT 6.5.2 (this is my first post, as most o