Default Styles

i would be interested to know, what default styles\setting
does everyone use for their css pages.
here are mine.
body { /* set everything to normal to define the base format
font: normal 13px/normal Geneva, Arial, Helvetica,
sans-serif;
color: #000000;
margin:0;
margin-top:2px;
margin-bottom:2px;
h1 { font-size: 1.5em; margin: 0 .25em 0.65em 0; }
h2 { font-size: 1.2em; margin: 0 .25em 0.65em 0; }
h3 { font-size: 1.1em; margin: 0 .25em 0.4em 0; }
p, td, th, div, blockquote, ul, li, dl, ol { font-size: 1em;
p, td, th, blockquote { margin: 0.5em 0;} /* controls spacing
between elements */
.clearfloat { /* this class should be placed on a div or
break element
and should be the final element before the close of a
container that
should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
.convinline
display:inline;
.convblock
display:block;
.pararight
text-align:right;
.paraleft
text-align:left;
.paracentre
text-align:center;
.fleft
float:left;
.fright
float:right;

You can read about it here -
http://www.tjkdesign.com (look
for the article on clear floating).
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"malcster2" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
Newsgroup User
> Seems OK. I normally add -
>
> html,body { min-height:100%;margin-bottom:1px; }
>
> after any body rule that sets margins. This forces a
vertical scrollbar
> on
> all pages, even when they don't require one to avoid the
left/right jog as
> you navigate between pages that do and pages that don't
exceed the
> viewport
> height in certain browsers (FF and Safari).
>
> You could reduce the verbosity a bit - for example:
>
> instead of this -
>
> > margin:0;
> > margin-top:2px;
> > margin-bottom:2px;
>
> this -
>
> margin:2px 0;
>
> I no longer use this kind of thing as a rule, opting for
the
> overflow:hidden
> style -
>
> > .clearfloat { /* this class should be placed on a
div or break element
> > and should be the final element before the close of
a container that
> > should fully contain a float */
> > clear:both;
> > height:0;
> > font-size: 1px;
> > line-height: 0px;
> > }
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "malcster2" <[email protected]> wrote
in message
> news:[email protected]...
> >i would be interested to know, what default
styles\setting does everyone
> >use
> > for their css pages.
> > here are mine.
> >
> > body { /* set everything to normal to define the
base format */
> > font: normal 13px/normal Geneva, Arial, Helvetica,
> > sans-serif;
> > color: #000000;
> > margin:0;
> > margin-top:2px;
> > margin-bottom:2px;
> > }
> >
> >
> > h1 { font-size: 1.5em; margin: 0 .25em 0.65em 0; }
> > h2 { font-size: 1.2em; margin: 0 .25em 0.65em 0; }
> > h3 { font-size: 1.1em; margin: 0 .25em 0.4em 0; }
> >
> > p, td, th, div, blockquote, ul, li, dl, ol {
font-size: 1em; }
> > p, td, th, blockquote { margin: 0.5em 0;} /*
controls spacing
> > between elements */
> >
> > .clearfloat { /* this class should be placed on a
div or break element
> > and should be the final element before the close of
a container that
> > should fully contain a float */
> > clear:both;
> > height:0;
> > font-size: 1px;
> > line-height: 0px;
> > }
> >
> > .convinline
> > {
> > display:inline;
> > }
> >
> > .convblock
> > {
> > display:block;
> > }
> >
> > .pararight
> > {
> > text-align:right;
> > }
> >
> > .paraleft
> > {
> > text-align:left;
> > }
> >
> > .paracentre
> > {
> > text-align:center;
> > }
> >
> > .fleft
> > {
> > float:left;
> >
> > }
> >
> > .fright
> > {
> > float:right;
> > }
> >
> >
>
>
>
> thanks for that murray
>
> to be honest, i was wondering what the difference
between overflow:hidden,
> and
> the .clearfloat style was
>

Similar Messages

  • Default style for input

    I need a way to change the default style of a textfield. For
    example, if the textfield is required, I want the set the
    background color to yellow (FFFFCC) so that when the page
    containing that textfield loads the background color will already
    be yellow. Here is some sudo code that I thought would work but can
    get the spry css to over-ride:
    Default style:
    .textfieldDefaultState input, input.textfieldDefaultState {
    background-color: #FFFFCC;
    Textfield:
    <span id="sprytextfield1">
    <input type="text" name="text1" id="text1"
    class="textfieldDefaultState"/>
    <span class="textfieldRequiredMsg">A value is
    required.</span>
    </span>
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new
    Spry.Widget.ValidationTextField("sprytextfield1", 'none',
    {validateOn:['change']});
    //-->
    </script>

    Thanks for the response, but my problem is that I want the
    Spry CSS to override the default/initial CSS. In fact, I want the
    initial background color to be a designated color for my required
    field(s), for example yellow (which is currently the color used in
    conjunction with the onfocus event), when the page loads or is
    refreshed in addition to when the field is in focus. Currently the
    textfield samples have no default/initial CSS. When the required
    field is validated then the field should change. Currently the
    textfield samples use CSS to display the background color as red
    when the validation returns false and green when true.
    Thanks

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • How to make ROUNDED rectangle default style cp8?

    Hi,
    I want my smart shape style to be rounded rectangle, not squared. I have set up my object styles with color and all that good stuff, but there is no way I can see to make it the rounded shape instead of the squared off shape.  I also tried to change one on the properties panel thinking I could "apply to all" but that option is not available.  I am trying to use smart shapes as my captions in recording and it sure would be nice not to have to touch every single one and change it to rounded - defeats the purpose of styles, yes?
    Using CP8, latest version (I checked and there are no updates available), on a windows machine, 64 bit.
    Thanks!!!
    Kelly

    Rick, that option has effect on the captions inserted while creating a software simulation.
    @LMS_90 About which shapes as Text container are you talking? Object styles for Shapes do not include the 'form' of the shape. And at this moment, you cannot set such a form as being included in the default style, with the one exception that Rick points out: added text during a simulation capture.
    Even for Success/Failure/Hint shapes you cannot define that it always has to be a rounded rectangle. For Question slides, you can set them up in the master slides, and if you use always master slides with placeholders it is also possible. Quite a lot of the default themes have rounded rectangle shapes as text container for Title and Subtitle.
    Also in the Properties the 'form' is not part of the style: if you apply the default Shape Style that includes Stroke, Fill, Character properties, Margins, Shadow...but not the shape itself. That is the reason why 'Apply to all' cannot be used for the shape form.
    This is probably not the answer you expected, I try to change as much as possible in the Master slide.

  • Disabling default style (theme) at all

    Hi, I'm just starting using Flex 2. Is an interessant
    experience, as it blends many disciplines and skills.
    I'm demoing a demo for a project. The app has it's own style,
    so I linked the mxml file to an external CSS with style. The styles
    are applied with no problem.
    However the default styles shows when loading the page/app.
    When loaded the style changes. But I would like to disable the
    default style from the start.
    Any help will be appreciated. Thank you.
    Alvaro Medina G.
    http://www.escasoaporte.cl

    Hi, I'm just starting using Flex 2. Is an interessant
    experience, as it blends many disciplines and skills.
    I'm demoing a demo for a project. The app has it's own style,
    so I linked the mxml file to an external CSS with style. The styles
    are applied with no problem.
    However the default styles shows when loading the page/app.
    When loaded the style changes. But I would like to disable the
    default style from the start.
    Any help will be appreciated. Thank you.
    Alvaro Medina G.
    http://www.escasoaporte.cl

  • Style for following paragraph only works for RH default styles?

    I'm creating my own styles in the styles and formatting pod. When you choose 'Edit' and then fiddle with the settings in the dialogue box, there is an option for "Style (style for following paragraph).
    This is a great feature. The problem is, it only seems to work if you choose a style that existed by default in RH (e.g. Heading 1, Normal). When I choose a style I created, the next style created with a hard return is just a repeat of whatever style you were in on the previous line.
    It's hard for me to understand why it won't work with any of the other styles I created, since they all appear in this dialogue-box list as options. Could someone please enlighten me?

    I'm using the default style sheet. I've added my own topics in it.
    Any other thoughts?

  • How do I change default style in TextEdit?

    How do I change the default style in TextEdit -- that is, the style that a new document will automatically have? (In particular I want new docs to have certain ruler and spacing parameters.)
    I know how to add favorite styles and remove them -- but want to change the default style so that I don't have to select my favorite every time I create a new rtf document in TextEdit or other programs.
    I suspect this is simple -- but I can't figure it out or find it anywhere. EXTREMELY obliged for any solution.
    Thanks,
    Dave

    That will change the default for all new documents. That's the most formatting control avaiable in Text Edit. For more control over your docs try Apple Pages, neoOffice or MSWord.
    -mj

  • Bug in RichText fields default style

    The Microsoft version of Adobe Reader crashes, if the default style (DS) attribute
    of the widget dictionary has a trailing semicolon.
    E.g. crashes if
    /DS(font-family:'Courier'; font-size:10pt; )
    This will work:
    /DS(font-family:'Courier'; font-size:10pt)
    The MacOSX and Linux Version will work fine instead.
    Tested with 8.1 and 9.1 versions on all platforms.
    Clicking into the rich text field brings up the Microsoft crash dialog.
    Either the Microsoft windows version has a different code base or
    it uses a compiler which is not covering some missed initialisation...

    Thank you for reporting this. I have fixed this for Application Express 4.1.
    Joel

  • How to Control default Styles(Font,BGColor,Size) for WPC Objects.

    Hi All,
    This is Ganesh, Current i am working on Content Migration Using WPC.Now My Question, while we are creating the Site Content using WPC(Like Articles, Paragraph's, etc...), while we are typing the content for Article, its showing in one font, after creation of article,while we are previewing of the Article , its showing in Blue Color Letter's and Shade Blue back ground and also Coming font big in size.
    If i am creating the paragraph, while we are previewing the its Displaying in Black Color.
    From where the details of font, size and back ground colors are coming in WPC objects.and if they have to modified, how can it be done?
    Where We can Control the Default Styles for WPC Content Creation Objects.If Possible how to modify?
    Please provide some valuble inputs for my Query???
    Thanks in Advance
    Krishna Ganesh

    Ganesh,
    You are absolutely right. If you modify the xml, xsl and css files supplied by the standard SAP it will affect all the users. Please note that whenever you need to modify the css, you need to do the same in /etc/wpceditor/css/runtime folder. Modification of the css in /etc/wpceditor/css/designtime folder is not of any use.
    If you do not want the changes made to the style to affect all other users, it is always wiser and recommended to create your own custom webform. Some webforms like Article, Link List, banner, teaser etc are provided by SAP. If you want to create your own webform and apply the style to that webform alone then you need to follow the process of creating custom webforms in WPC.
    In order to change the style you need to understand a bit of XML and XSL transformation.
    You can refer to the following sdn help for the same - http://help.sap.com/saphelp_nw70/helpdata/en/45/599b78b0aa3bdde10000000a1553f7/frameset.htm
    Hope it helps. Let me know if you need any further clarification.

  • Default Style for

    I've used a seperate style sheet to create different styles for my header text and my body text on the content server side, for records that open up. I now have noticed that the lists don't have a class assigned to them. I need a way to assign them a style I have set up on a style sheet. Does anyone know how to get the ul and ol class tags to take a style from a style sheet that you create. If anything is there a way to set up a default style for all tags that don't have a class assigned to them?
    Thanks,
    Brie

    I am using Portal version 3.0.9.8.0

  • Default style is driving me crazy

    I want all of my WP documents to use a particular font in a particular style but even though I've followed the instructions in AppleWorks help, very carefully, about 10 times, on how to do this by editing the "default" style, and even though in the "Styles" window my changes show up correctly, the font I want refuses to appear in documents.
    I've tried restarting the computer, everything, but I've just about han enough.
    What am I doing wrong?
    Help !

    What am I doing wrong?
    Your description sounds like you want an alternate default document template, but what you're doing changes only the "current" document.
    See AppleWorks Help topic "Setting up default templates (Options documents) for specific document types" (just type "default options" into the AW Help search window -- it'll be the first article returned in the search).

  • Default style

    Hi. This isn't really a problem, but I have a question. Pages always opens with body as the default style, is there a way I can create a new style that is default and all new documents open with? Thank you in advance,

    Create a blank document with all of the settings that you want & then save it as a template. You can then tell Pages to use it as the default in the preferences.

  • Default style in experience definition

    Hi, I can not see list of 18 styles in Default Style dropdown while configuring a new experience definition. I can see only one entry i.e., "User Portal Style". Does any one come across this issue?
    thanks
    sampath

    i could able to resolve this issue. this was due to some issues with my image server.
    thanks
    sampath

  • Default Style Settings

    This may seem very basic to all of you, but it isn't to me, and it's getting on my nerves!
    I want to change the font in my default Body style for all documents, but can't find any way of doing it - and Help isn't helping! It doesn't help that the first thing I get when I create a new document is an error message telling me that it's corrected Helvetica to Helvetica Narrow - i don't give a crap: I don't want either!
    I'm not a complete *** by the way - I've been changing default styles and templates on Word for years.
    What am I missing and why can't I see it straightaway? All help gratefully received.
    Thanks,
    Neil

    Hello
    Welcome to the club.
    If I undersand well, DennisG responded to one aspect of your question.
    The other: error message claiming that Helvetica is replaced by Helvetica Narrow is a problems which got response several times in this forum.
    It would be usefull to enter the Search tool:
     > more options
     > Pages '08
     > keyword missing AND font
    Here are some returned links:
    http://discussions.apple.com/thread.jspa?messageID=5729807
    http://discussions.apple.com/thread.jspa?messageID=6122353
    http://discussions.apple.com/thread.jspa?messageID=5674024
    Yvan KOENIG (from FRANCE mercredi 16 janvier 2008 15:57:2)

  • Set default style for shapes

    Is there a way to set a default style for Shapes in Pages 5.2 ? 

    Accidentally discovered th answer to this (tried to delete the question but could not).... seems that if rearrange the "styles" in the format side bar, the first style will be the default style used....

Maybe you are looking for

  • HP Envy 700-430qe DT CTO - - - Trying to dual boot with Windows 7

                                                                                                       HELP HELP HELP I know how to set up double boot for several different HP computers, based mostly from what I have learned in this great forum, but this

  • Question about ios 7

    Will apple solve the problem of slowing down of iPhone 4 running ios 7 in the next version of ios 7 or I should downgrade?

  • SNP Heuristics- TSL parameter

    hello Gurus, I am using target stock level method 1 in product master;this setting works fine in interactive planning but not in back ground planning run. Can you please throw some light on significance of the below attribute and where/how to set thi

  • Flash text and frames!

    Hi, Im making a simple frameset with a left navigation and a main frame. It works fine with normal links in the navigation. But when i use flashtext links it launches a new window, even with the target set. Any ideas? thanks

  • Start up not happening

    I installed some software (no i don't know which ones i trusted my mac to just know ) and then shut it down. My power did go out that night. I came down the next day to start it up and it was on and just had the apple symbol on the white screen with