CSS or Java Script to top left align a web magazine?

We have created an online magazine with InDesign and exported it as an HTML file. The problem is it default centers and I would like it to align to the top left of the screen. The only way I see to do this right now is to add a CSS or Java script when I export it, but I cannot get it to work. Any suggestions?
Also, any suggestions as to the best options for sizing the magazine to different screen resolutions? We are trying to make this available in all sizes, but I would like it to auto resize based on the size of the reader's screen.
Thanks!!

Thanks,
I got it worked, I used the belw code.
<script language="Javascript">
<!--
function checkField(form) {
var sValue = form["headerForm:sValue"].value;
if(sValue == ""||sValue==null||sValue.charAt(0)==''){
alert("Please Scan / Enter value");
var sType = form["headerForm:sType"].value;
if (sType == 'OTHERS'){
var partNumber = form["headerForm:partNumber"].value;
if(partNumber == ""||partNumber==null||partNumber.charAt(0)==''){
alert("Please Enter Part Number");
var Qty = form["headerForm:Qty"].value;
if(Qty == ""||Qty==null||Qty.charAt(0)==''){
alert("Please Enter Quantity");
-->
</script>

Similar Messages

  • Flash CS4: Top/left alignment is 8 px from top/left in browser??

    Hi there. another newbie to Flash. My vision is to have a colored square at the top of the site Im working on which should span across the entire browser window. I have created a square 1280 x 100 pixels in size and imported it to the stage, alignment is set to x=0, y=0 ad alignment. The scene is the same size as the square I 've imported. When I view my Flash creation its displayed 8 pixels from the top left corner of the browser window. The flash file only contains the square and nothing else. Please take a look at the 3 files I've attached: issue-scrreen1-3.jpg. The first 2 screens are my Flash, properties and library screen shots. The third screen shot is my browser window.
    Any help on this issue will be very much appreciated.

    Thanks a lot Ned. It worked!
    </script>
      <link href="header.css" rel="stylesheet" type="text/css">       // I HAVE ADDED THIS LINE! TO MY FLASH  GENERATED HTML
    </head>
    This does work until I regenerate/recompile/publish the header.html the next time.
    If I put the code in a seperate CSS file, can I then link it into the flash.fla file?

  • 'SET MARKUP HTML' top left alignment in SQL*Plus

    I have a SQL script which generates HTML that is then emailed as a HTML email. I am using the following SET Markup command
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
    HEAD "<STYLE type='text/css'> -
    table,tr,td { -
    font:10pt Arial,Helvetica,sans-serif; -
    text-align:left; -
    vertical-align:top; -
    color:black; background:white; } -
    <!-- BODY {background: white} --> -
    </STYLE>" -
    BODY "TEXT='black'" -
    TABLE "WIDTH='100%' BORDER='1'"
    Looking at the file generated it is creating the table tags OK but there is no CSS. This means the text is vertical aligned in the centre of the cell and I want it top left.
    Any ideas?
    Ben

    Welcome to OTN.
    You probably just need to get the tags with the CSS info into your document any way you can. If nobody suggests anything more elegant consider using prompt or even pl/sql dbms_output.put_line statemtns to get the CSS lines into your output - something like (untested)
    set serveroutput on
    exec dbms_output.put_line('<style type=''text/css'''); --two single quotes around "text/css"
    . . .Edited by: riedelme on Jul 7, 2010 11:02 AM

  • When I log into my yahoo mail, I also log into messenger and chat via there, but the last two days I can't get my IM window to come up. It says Java script on the left corner, but I check those settings and they are on. So what else could be the problem?

    My contacts list comes up, but when I click on the person's name I want to chat with, the IM boxes doesn't pop up like it used to. I checked java script and that is on, I even opened up I.E. logged into my email, clicked on a name, and what you know, the IM box popped up and I can chat. So what is the problem here?

    Its known issue, see;
    * https://bugzilla.mozilla.org/show_bug.cgi?id=713014
    please open a bugzilla account and add your email in cc list if you want to follow the bug?
    Someone having the problem, but when he upgrade Java runtime, his poblem was fixed, make sure your JRE has been up to date?
    Also maybe this bug is fixed in nightly?
    * firefox.com/beta

  • Trying to access the java script files via jar file in WEB SERVER

    hi all,
    I am trying to access the java script files via jar file ,which is present in Apache webserver in order to minimise the number of hits to app server.some thing like cache ...
    in jsp the code goes like this...
         <script type="text/javascript"  archive="http://localhost:14000/dojo.jar!" src="dojo.jar/parser.js" " ></script>{code}
    But i am not able to access the js file which is put in jar file present in the  webserver.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    You can use DWR (Direct Web remoting) for that. It is easy AJAX for java. ou can directly call the java script function from java class and also java class from javaScripts..
    Regards,
    Hardik

  • Css and java script need

    Hi,
    I need trying to implement menu like this
    http://www.farin.com/ (education,product ...) and have *.css and *.jss and
    html tags. But when I was copy/paste this code there was some problems.
    Where can I found any examples whith menu from link above
    Best regards,
    Gordan

    Hi Gordan,
    That seems to be their own menu system so there may not be any support available. You could try: http://www.milonic.com/
    Andy

  • Entered text alignment in middle, not top left...how to fix?

    I have a text field that's about .5" tall. When a user enters information into the field the entered content begins in the middle of the area. As they enter more information the center alignment seems to go away and the text moves up to simulate top left alignment (the field has expand to fit on also). So, 1) do I have to make the cell smaller for it to have top left alignment and subsequently throwing off the look of the form or 2) is there a way to get the cell to have top left alignment?
    Thanks for any help!
    Becky

    You can align the input to top, middle or bootom as well as right, left or center. These settings are contained on the font palette. The palette is probably not visible to you, so go to the Window Menu and turn the font palette on (or hit the shift F4 shortcut key). Now click on th eobject you want to align and look at the Font palette. Jsut below the Tabs is a line that says what you are editinng (by default it is set to caption and value). Change it to edit just the value. Now you can set the alignment by clicking on the paragraph tab and choosing the options that you want.

  • Java Script for enhancing Web Template

    Hi
    I had a Java Script Error when trying to customize WEB Template
    I had a Sales Fore Cast report in 3 different versions
    Weekly View
    Monthly View and
    Quarterly View.
    The Rows and Free Chars for all the 3 reports are same only the calculactions in the coulmns changes accordingly.
    My requirment is when user selects the query in portal.The first screen would be 3 Radio Buttons
    (User has to choose either Weekly r Monthly r Quarterly radio button) which takes to the revelevant results
    As mention in the below How to do Doc
    www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0e11be0-b925-2c10-7991-daf9122a9918
    could you please update me the required JAVA Script
    Thanks

    please update

  • Where is the return arrow that use to be in the top left corner

    where is the return icon that use to be in the top left of the web page. how do i return to the previous page

    Please see this article: http://kb.mozillazine.org/Back-forward_buttons_missing_after_Firefox_upgrade

  • Javascript/vbscript functionality (java script functions are not running) issue in Internet Explorer 10 and 11

    We have developed web portal using classic ASP and java/vb script.  We used to run it absolutely fine using Internet Explorer 8.  Now we just migrated to Internet Explorer 11.  But after that no java script functionality is working in our
    web portal.
    Our web server is configured on windows 2003 server and IIS version 6.0 and has .net Framework (Microsoft.NET\Framework\v2.0.50727).  
    Could you please suggest us that is there any workaround to this? 

    Hi,
    Have you tested this web portal in compatibility mode, Tools\Compatibility view settings? or click F12 to use the developer tool, change the the document mode and user agent string to 8, check the result.
    And under Tools\Internet Options\Security\Custom level, scroll down to "Scripting", enable "Active Scripting".
    Since you're developer of the web portal, it's recommended to post issue in IE development forum
    https://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
    Regards
    Yolanda Zhu
    TechNet Community Support

  • Putting cross line under top left corner in a cheque through SAP SCRIPT.

    Hi,
    How to put cross line over top left corner in cheque   (cross cheque) while doing it through  SAP SCRIPT.
    Thanks.

    Hi,
    i can give you two solutions. try the thing which looks fine for you.
    1.  say this is line editor of the script.
    you have to design like this manually(its a bit time consuming for alignments and all - both should align side by side using '/')
    so try the second way.
    2.  make this 'corss' as an image and simply pass as a text on to the window on which you needs this.
    it will be simple and an easy way.
    Thanks & regards,
    Sasi Kanth.

  • Align page to the top left ?

    Hi everyone !
    First of all all my thanks to this great forum, it solved lots of questions in advance.
    Here´s one I couldn´t find an answer to:
    Most of the internet pages I know don´t have the page automatically centered in the browser, but have it aligned
    to the top left. So that on openinig the page you hardly ever
    see the browser background. Only if increasing browser size the background will come up on the bottom and left.
    I know that the iweb behaviour of placing the page automatically center can´t be altered easily, but maybe there is a way to do this via html ?
    Thanks for the answer !
    G5 Mac OS X (10.4.9)
    G5   Mac OS X (10.4.9)  

    iweb ! Ok, so I should try to see the page source,
    find the text about window/browser placement and do
    what people do, who can read and write Jawa/html. Hm
    LOL! many people had tried to look at my page source and didn't see much there.
    I´m afraid that´s not me, but maybe you can point me
    to the lines to alter ? Besides: iweb´s behavior of
    There is no need to look for the code, iWeb code is very structural so adding the following line to the end of your page (after /html>) will do the job:
    <script type="text/javascript">document.getElementById('body_content').style.marginLeft = '0px';</script>
    Do not add the above to HTML code if you use .mac blog and its commenting system. Alter (.mac blog) HTML will potentially mess it up.

  • FF 7.0.1 on Mac OSX 10.6.8: I sometimes get the "unresponsive script" dialog box in the top left corner of the screen, so far out that I can see only the bottom right corner of the dialog box. Is there any way of re-centring it?

    FF 7.0.1 on MacOSX 10.6.8 (not this machine!): I sometimes get the "unresponsive script" dialog box jammed into the top left corner of the screen so that only a quarter of it is visible.
    Is there a way of re-centring the dialog box (in particular, when its top edge is off the screen)?
    Thanks!

    There is no way to preserve view preferences.Just remember or annotate the zoom % used in the package.
    You may want to open an MS Connect item asking to add such a feature.
    I can tell you it may not be implemented because a package may be opened on different size monitors.
    Arthur My Blog

  • Change the java cup picture in the top left corner

    Does any one knows how to change the java cup picture in the top left corner of the frames and applets
    Thanks in advance

    Hi,
    I have the following code added and get this error:
    non-static method setIconImage(java.awt.Image) cannot be referenced from a static context
    private static void SetUpGUIApplication(){
            //This must be invoked before
            //creating the JFrame.  Native look and feels will be set here
            // Comment this out to see the differences
           FrmMain.setDefaultLookAndFeelDecorated(true);
            ImageIcon appIcon = new ImageIcon(getClass().getResource("resources/FLGCAN.ICO"));
            if (appIcon != null)
                    setIconImage(appIcon.getImage());
        }What does this mean when adding static verses non static?
    Thanks

  • Simple script that will export the coordinates (layer bounds - top left x,y)

    Hi,
    I'm looking for a simple script that will export the coordinates (layer bounds - top left x,y) of the layers to an seperate xml/txt file.

    Your screen capture looks like it's from Photoshop.
    In InDesign sub layers are page items, the containing layer has no dimension. So you could get all the page item's x, y, width, height. But you might have to consider groups and then the layering could be very complex. The stacking order could also get complex. Page items have an index, but it's relative to its parent container.

Maybe you are looking for

  • Ipod cannot be restored because of unknown problem (Error 1437)"

    One day when I was listening my ipod when I pass the other song ipod screen freeze and I reset it and when its open all the songs and videos are gone Then I connect it to my laptop and I took the Error says "iTunes has detected an iPod that appears t

  • USB Latency on MSI GT 735.

    Hi, I have a MSI GT 735 006 with a Traktor Scratch Pro (Native Instruments) with an external sound card and vinyls to control the tracks. I have problems when playing it plays : blanks crackles jumps etc... Native Instruments Hotline told me to check

  • Low drive space

    This morning (08/10), when I turned my computer on, the HP Support Assistant gave me an alert, saying I had a message. When I opened the assistant, and looked at the message, it said I had low drive space on C. See 1st atch. Not sure what that means.

  • I want to send to the trash these songs which are selected by a smarlist

    Bonjour ! Yes, deleting the "smartlist" does delete the smarlist - but its content is still in the Library, and I would have to loose my time to search and delete them all around when i had all of them at hand. Stupid if I had missed the point but ni

  • SM58 Error entries

    Hi All, I find many SM58 entries logged against the program RSM13000 with message 'User is locked. Please notify the person responsible' . For the FMs 'SWW_WI_CREATE_VIA_EVENT' and  'SWW_WI_CREATE_VIA_EVENT_IBF' the Workflow_local_100 destination is