CSS code or by default in the page html DW CC

Hello

I am creating a site of an empty html page and no matter what I do, Dreamweaver keeps placing the CSS code in the head of the HTML page. I don't want this site will have more than one page, and I would like a large css file of the site.

I created a new HTML page, selected create a new CSS, named css for what I want, and still, it places the css in the html file.

I've tired to do a right-click the page in design view and adding the css file and still the same.

I never had this problem before, it seems as if the last update to Dreamweaver (the one where is by default adds folders JS and fonts) seems to be something that will not create mode to put the code directly in an external CSS file.

The correct href links are in the head of the CSS tags.

He drives me crazy.

Thank you very much

GoGood wrote:

Hi Jon Fritz II

Thanks for the reply.

I've highlighted the css file, as suggested and then the page properties to change the margins to 0...

'Well, it's your problem... »

Page properties are literally 'page properties '. If you want to add body {margin: 0 ;} to your external .css file, you must make the change in CSS designer.} Page properties affect only the given page and will write to theArticle as CSS embedded.

Tags: Dreamweaver

Similar Questions

  • Is it possible to display the index of the real estate code I created in the page html, css layout?

    Hi all!

    First of all, I'm really sorry if this is a bad question, but I found this option in other html tools (like PHP storm) and tried many options in CS6, without success.

    What I do: just started to learn html 5 with an online course (without a master, a few videos), so I'm really a user "rookie".

    I am working to put an image in html using css for formatting, so:


    1 - the index.html, I wrote the following code:

    < figure class = "foto-legenda" >

    < img src = "_imagens/image.jpg" >

    < figcaption >

    Test image < h3 > < / h3 >

    Legend of the Image Test < p > < /p >

    < / figcaption >

    < / figure >


    2. If, then, I need to define properties for "foto-legenda", in "file.css", like border etc, and what I've done:

    }

    {Figure.foto - legenda}

    border: 8px #F00 solid;

    }

    Far, so what it s works fine, but the question is:

    After I have written "< figure class ="foto-legenda...»" ', in html code, I want to write in css page, a bit of code and retrieve the indicator for the options that I started on the HTML page.

    For example, in css page, I'm starting to write 'figure'and get the hint of 'illustration' or 'figure class' (all from "figure"), after you selected the desired setting and start writing get «foto...» ", " foto-legenda " indicator.

    I hope it's clear.

    Thank you in advance.

    Sorry, it does not work like that.

    First of all, define the class of CSS selector.  Save your CSS file.

    .foto-legenda {border: 1px solid #CCC; padding: 0.5em}

    Now, when you type the class HTML = "foto... indicators of code will give you the class in a drop-down list.  See screenshot.

    As far as I KNOW, the code in DW CSS hints never picked up HTML classes.

    Nancy O.

  • Restart an animation without refreshing the page HTML

    I am looking for a way to reload animation on demand, but without refreshing the page HTML (which is no JS window.location.reload () method, say with a simple click of a button. Direct application would be a button to restart the game.

    It's probably something that could be useful to many people.

    Once the composition is ready to use, why would you want to reload the entire composition again.

    An example for the game:

    When you click on the play button, you load the composition once. Playback of the animation until the end.

    Then you can set the visibility of the animation in 'hidden' using the script. And show a button "Restart" instead.

    In the handler for the button click "restart", set the visibility back to 'visible' and read the animation again.

    HTH,

    Vivekuma

  • Code duplicates when I update the pages of the template (CS5)

    So. I learn Dreamweaver CS5 Classroom In A Book Adobe manual.

    I worked through the steps but when it comes to update the pages, derived from the master model, it happens...

    2016-03-11 16.02.06.jpg

    And the code looks like this... (The bold text is the text that is editable)

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns ="http://www.w3.org/1999/xhtml' ><!-InstanceBegin template="/Templates/mygreen_temp.dwt ' codeOutsideHTMLIsLocked = 'false'->

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    <!-InstanceBeginEditable name = "doctitle"-->

    < title > GreenStart Association - Contact GreenStart < /title >

    <! - InstanceEndEditable - >

    < link href = "mygreen_styles.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "print_styles.css" rel = "stylesheet" type = "text/css" media = "print" / > "

    <!-InstanceBeginEditable name = "head"->

    <! - InstanceEndEditable - >

    < / head >

    < body >

    < div class = "container" >

    "< div id ="logo"> < img src="lesson05/images/butterfly-ovr.gif "width ="170"height ="150"alt ="GreenStart Logo"/ > < / div >

    < div class = "header" > <! - end .header - > < / div >

    < div id = "h-navbar" > < a href = "index.html" > home < /a > | < a href = "about_us.html" > < /a > about us | < a href = "contact_us.html" > contact us < /a > < / div >

    <!-InstanceBeginEditable name = "SideContent"->

    < div class = "sidebar1″" >

    < ul class = "nav" >

    < li > < a href = "#" > green news < /a > < /li >

    < li > < a href = "#" > green product < /a > < /li >

    < li > < a href = "#" > Green events < /a > < /li >

    < li > < a href = "#" > green travel < /a > < /li >

    < li > < a href = "#" > Green Tips < /a > < /li >

    < /ul >

    < img src = "images/biking.jpg' alt = 'Bike to take action to save gas' name ="Sidebar"width ="180"height ="145"id ="Sidebar"/ >"

    < p > we practice what we preach here is Lin bike to work through Lakefront Park < /p >

    <! - end .sidebar1 - >

    < / div >

    <! - InstanceEndEditable - > <!-InstanceBeginEditable name = "MainContent" value->

    < div class = "content" >

    GreenStart Contact Association < h1 > < / h1 >

    < p >

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional / / BY" > ".

    " < html xmlns ="http://www.w3.org/1999/xhtml' ><!-InstanceBegin template="/Templates/mygreen_temp.dwt ' codeOutsideHTMLIsLocked = 'false'->

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    <!-InstanceBeginEditable name = "doctitle"-->

    < title > GreenStart Association - Contact GreenStart < /title >

    <! - InstanceEndEditable - >

    < link href = "mygreen_styles.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "print_styles.css" rel = "stylesheet" type = "text/css" media = "print" / > "

    <!-InstanceBeginEditable name = "head"->

    <! - InstanceEndEditable - >

    < / head >

    < body >

    < div class = "container" >

    "< div id ="logo"> < img src="lesson05/images/butterfly-ovr.gif "width ="170"height ="150"alt ="GreenStart Logo"/ > < / div >

    < div class = "header" > <! - end .header - > < / div >

    < div id = "h-navbar" > < a href = "index.html" > home < /a > | < a href = "about_us.html" > < /a > about us | < a href = "contact_us.html" > contact us < /a > < / div >

    <!-InstanceBeginEditable name = "SideContent"->

    < div class = "sidebar1″" >

    < ul class = "nav" >

    < li > < a href = "#" > green news < /a > < /li >

    < li > < a href = "#" > green product < /a > < /li >

    < li > < a href = "#" > Green events < /a > < /li >

    < li > < a href = "#" > green travel < /a > < /li >

    < li > < a href = "#" > Green Tips < /a > < /li >

    < /ul >

    < img src = "images/biking.jpg' alt = 'Bike to take action to save gas' name ="Sidebar"width ="180"height ="145"id ="Sidebar"/ >"

    < p > we practice what we preach here is Lin bike to work through Lakefront Park < /p >

    <! - end .sidebar1 - >

    < / div >

    <! - InstanceEndEditable - > <!-InstanceBeginEditable name = "MainContent" value->

    < div class = "content" >

    GreenStart Contact Association < h1 > < / h1 >

    < p >

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional / / BY" > ".

    < HTML >

    <!--@page {margin: 2cm} P {margin-bottom: 0.21 cm}->

    < BODY DIR = "LTR" >

    < /p >

    < p > for general questions and information email: [email protected] < /p >

    < p > when you contact our offices in Meridian, our friendly and knowledgeable staff is ready to serve you and answer your questions: < /p >

    Association Management < h2 > < / h2 >

    < div class = 'profile' >

    < p > < BR >

    < img src = "images/elaine.jpg" alt = "Elaine, Meridian GreenStart President and CEO" width = "150" height = "150" class = "fltrt" / > Elaine is president and CEO of GreenStart Association. " She has 20 years of experience in environmental sciences and has worked at several grassroots organizations, develop programs and services for community outreach. < /p >

    < p > you can find his answering your phone calls or extract a problem you have with a mail order. < /p >

    < p > Elaine to e-mail: [email protected] < /p >

    < / div >

    < p > < BR >

    < /p >

    < h2 > education and events < / h2 >

    < p > < / p >

    < div class = 'profile' >

    < p > < img src = "images/sarah.jpg" alt = "Sarah, Coordinator of events GreenStart" width = "150" height = "150" class = "fltlft" / > Sarah organises all our events, classes, and green travel offers. " Sarah made these offers begin on time and achieve their goals, so that you can enjoy every minute. < /p >

    < p > it also can create custom events for people with special needs such as access to disability or special dietary needs, or facilities for classes and existing events. So, let Sarah know if you have any personal requirements. < /p >

    < p > Sarah to e-mail: [email protected] < /p >

    < / div >

    < p > < BR >

    < /p >

    Analysis of transport < h2 > < / h2 >

    < p > < BR >

    < /p >

    < div class = 'profile' >

    < p > < img src = "images/eric.jpg" alt = "Eric, Coordinator of the research" width = "150" height = "150" class = "fltrt" / > Eric is our expert in transport. " It can examine your needs and resources in order to identify the best green solutions for transportation everyday, if it includes cars, motorcycles, buses or trains and even the decision to buy or rent. < /p >

    < p > when you are ready to change the way you move around the city, call Eric. < /p >

    < p > Eric to e-mail: [email protected] < /p >

    < / div >

    < p > < BR >

    < /p >

    < h2 > research and development < / h2 >

    < p > < BR >

    < /p >

    < div class = 'profile' >

    < p > < img src = "images/lin.jpg" alt = "Lin, research and development" width = "150" height = "150" class = "fltlft" / > Lin manages our research for sustainable development. " She studied the products and services of all the local restaurants, store, hotel, spa, or other cases that we recommend to our visitors. She listens to your comments on our recommendations and controls to your complaints. < /p >

    < p > you can expect to hear about Lin when you order a product or make a service appointment.  She will want to know what you thought of our offerings. < /p >

    < p > Lin to e-mail: [email protected] < /p >

    < / div >

    < p > < BR >

    < /p >

    Information systems < h2 > < / h2 >

    < h2 > < BR >

    < / h2 >

    < div class = 'profile' >

    < p > < img src = "images/matthew.jpg" alt = "Matthew", Manager of information systems width = "150" height = "150" class = "fltrt" / > Matthew is our do-it-all guy. " It takes care of the the business end of things. He maintains this web site, online store and the reservation system.  He is also experienced to help people complete their orders and can intervene to help when everyone is busy. < /p >

    < p > even if Matthew is good with numbers, it is also a passionate biker and can help you find some beautiful mountain BIKE trails around town. < /p >

    < p > Matthew to e-mail: [email protected] < /p >

    < / div >

    < h2 > < / h2 >

    <! - end content - >

    < / div >

    <! - InstanceEndEditable - >

    < div class = "footer" >

    < p > Copyright 2010 Meridien GreenStart, all rights reserved. < /p >

    <! - end .footer - > < / div >

    <! - end .container - > < / div >

    < / body >

    <! - InstanceEnd - >< / html >

    If someone could help with this, I would be very grateful, I was pulling my hair.

    I can fix it kind of in copy/paste the code in a new "page template" and removing code duplication but then I need to update the model and it happens all over again

    What can I say? Your Template.dwt file is broken.

    Maybe it would be easier to start over.  Or if you work with the code, open the Template.dwt file and fix mode code by removing the duplicate document.

    Nancy O.

  • How can I convert an external CSS to all be defined in the page?

    I need to move all CSS must be defined in the page's head.  Is there an easy way to do it with the PCOC?

    In the external file, press Ctrl + A to select all, then Ctrl + C to copy it to the Clipboard. Add a tagset to yoursection and press Ctrl + P to stick together. I know DW can outsource the css code, but I don't think that there is a function to go the other way.

    In General, it is much better to use an external css file rather than using css well integrated. Is there a particular reason you want to move it?

  • create a link to the page html to images and css

    A customer wanted a change to one of the pages on their website. So, I opened the page in DW and "recorded under ' another name of the same page (in order to keep a copy of the original page) in the same folder of the site. I made the changes and it was going on well in the browser preview. I then renamed this revised page identical to the original page back. I made this name change in the file to the desktop folder (could this be the problem?). When I downloaded from the site, it looked like all connections to the doc .css and the folder of images are no longer there. So, I pulled it in offline mode and now I am trying to find a way to re-establish links the .css and the images. Everything seems fine when open in Dreamweaver and when I preview it in mode browser, however in the thumbnail preview shows question marks when the images are supposed to be, and when I download it, it looks like hell.

    Any ideas as to how I can restore links?

    Thank you.

    rigoliarts wrote:

    I made this name change in the file to the desktop folder (could this be the problem?).

    Yes, that would be the problem. You should never work via the files Panel > window > files. If then, you make changes to a file or move to another location in the folder root of the Dreamweaver site will ask you if you want to update the links with this file assocaiated.

    rigoliarts wrote:

    Any ideas as to how I can restore links?

    Unless you have a backup of the original file, you may need to update the links manually. If you have the orginal file back to its original location, and then perform updates through the control panel site.

  • Add H2 to the page HTML of HTML5 with Captivate 8 or 9?

    Hello! I published dozens of tutorials for our Department Web site and now our web team asks me to do the tutorials more accessible by adding a header H2 to the HTML page for each Captivate tutorial. I am not an HTML expert, but I've been playing with just edit the index.html file that is generated without (visible) result. It has been suggested that the web team has given me to use Visual Studio to change the HTML code which is way outside of my knowledge although my student worker has experience with that. Another suggestion would be to create a blank page on our Web site and incorporate the tutorial. I saw instructions for that here, and it seems easy enough.

    The main problem I have is the additional steps that involve these suggestions. I probably have about 50 + tutorials on our site. The idea of having not only use Visual Studio to change existing and for each new tutorial is not attractive. Neither likes the idea of having to create Web 50 pages + and a new Web page every time I create a new tutorial.

    So I'm hoping against hope that there is something built in 8 Captivate (which I have now) or 9 (which I should have in the next few weeks) that would allow me to add a header of the HTML page when I publish it.

    Any suggestion would be appreciated!

    You can add the H2 to the html.

    Technically, the use of the tags as a H2 or for screen readers, only not in a visual style element. If you include it, but you don't see it, the screen reader will still see.

  • Edge cancels the background of the page HTML - is this a bug?

    Hello

    In the most recent preview, I'm running on a fairly serious problem.  I created a very simple example to show what is happening (see below).  In fact, when I insert the edge animation in my html page, that he cancels the background color I assigned to the entire page.  In this case, I have the color of #9966CC.  You can see the color as the load of the animation, but then the background everything becomes white.

    Here is an example of the page:

    http://bvcdesign.com/edgeBGissue.html

    It's just 2 slides with a preloader.

    I would really appreciate help with this.

    Thank you!

    BRITISH COLUMBIA

    Hey BC,.

    Delete this and only this is the file edge.js

    ],

    'body':]

    ['color', 'background-color', 'rgba (0,0,0,0)']

    It should work.

    Sarah

  • CSS - adding a different style to the page

    I have attatched the HTML code of the template I created for the site.

    If you are able to open it, you can see my < style type = "text/css" > area is really simple and clear (the only real style is the color of link... which is white).

    So yes, it is very well: on each page, I have the comments | The history of Oz as links that are white. Fantastic. But this style is applied to all the other links on the Web site. For example, I have a purchase order where you can click on the text of the item you wish to purchase, and a window opens. However, the link that click you on ISA... Unfortunately White. The background is white, making it difficult to read (duh). So I was wondering how can I ask a second .style my model. I tried .style2 and then bla bla bla, but that just changed my words | The history of Oz links.

    Help! Thanks :)

    goodridge_Winners wrote:
    > hmm thank you walt... but how to make a second style? is it as simple as typing in
    >

  • Need to load the page HTML 5 with SQLite in browserfield Blackberry 6.0

    Hi all

    Currently, I am working on the application in which I use static HTML 5, web page with built in SQLite db. I want to load in blackberry Browserfield 6.0 on offline for page web HTML 5 is placed in the my project package. I have developed the code below, but not able to load. What I'm doing wrong, I'm not able to find. Please let me know if you find something I am doing wrong.

    Private BrowserField _bf2;

    Private BrowserFieldConfig _bfConfig;

    _bfConfig = new BrowserFieldConfig()

    _bfConfig.SetProperty (BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);

    _bfConfig.SetProperty (BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.true);

    _bf2 = new BrowserField (_bfConfig);

    InputStream inStream = this.getClass().getResourceAsStream("/demo.html");

    ubyte [] bytes = IOUtilities.streamToBytes (inStream);

    Dim str As String = new String (bytes); _bf2.displayContent (str, "http://localhost");

    Thanks in Advanc

    Demo.HTML is packed into your folder of cod?  If so, you can access it by using "local:///demo.html".

    Take a look at the browserfield2demo included in the SDK Java BlackBerry and BlackBerry JDE for an example.

  • Safari tries to load the page .html with PDF plugin

    Since two days I can not launch an application I had installed for a long time on my iMac. So far I double clicked on a START. File HTML and the PPA began in Safari. Since two days Safari opens with a black screen with a button to download Adobe Flash Player to view the contents of the file. In the browser field, the path to the file is displayed correctly. If open the same START. File HTML with Chrome instead of this, everything works well.

    No idea what happened?

    Safari-plugs - unlock

  • Change default code in the "Create a new" page HTML for CS3

    When I open dreamweaver and go to file > new > Virgin Page > HTML, the code that appears when opening the page is not what I want. For example, I would change the DOCTYPE XHTML 1.0 strict (of transition).

    Is there a way I can enter for the backend of this program and modify the code so I don't have to do it manually every time I open an empty html page in DW? Or can I make my own and then make my default html page code?

    Thank you

    Luke

    When you choose FILE > new, you will see a button at the bottom of the interface preferences.  A click on that and you can choose how the 'new page' display when you open a new document.

  • Get the values of default table row when the page loads

    Hello

    I am running JDev 11.1.1.7. We have a page that contains two tables in a relationship of the master / detail of nickname. We can do a real master ADF / detail with view items related because the query for the 2nd table is complex and works best when queries with binding settings. The View object for the 2nd table has a request with 2 link params as it can get in the first table. Thus, when a line is selected in the first table we want to execute ExecuteWithParams on the object from view of the table 2. We do it in the Bean managed for the page in a method that is the selection to the first table listener. It works fine except when the page initially loads, the first line is selected by default. When the default value is selected the selection listener is not triggered.

    I've seen the suggestion of not having a line selected by default when the page loads by removing the value selectedRowKeys on the table. However, we do not want that the 1st row of the table secondary master to be selected by default and we as the table of detail to show the correct corresponding lines.

    Steve

    Steve,

    Not really sure when you say that the 2nd table is complex and may not use the master detail. If the settings link in the parent table, you can set the ViewLink accordingly and it should work, right?

    In any case, if you're after the execution of methods on the loading of the page, you will find the links below.

    If it's a working group, you can add a methodCall as activity by default and UTF, you can use phase listener (if listener server does not).

    https://blogs.Oracle.com/aramamoo/entry/an_epic_question_how_to

    Advice from the Oracle Johny: ADF: how to run the ViewObject with a ViewCriteria on the PageLoad in Application Web ADF

    It will be useful.

    See you soon

    AJ

  • Stop Apex (4.1.0) report to run Classic rpt on the page running by default

    Version 4.1.0

    Hello

    I've created a classic report on a sql query that runs when I run the page. By default, it uses the

    InStr (upper ("PRODUCT_NAME"), upper (nvl (: P1_REPORT_SEARCH, "PRODUCT_NAME"))) > 0

    in where condition that causes the bring all records by default since nothing is still entered in the search.

    Even if I change it to something like

    InStr (upper ("PRODUCT_NAME"), upper (nvl (: P1_REPORT_SEARCH, ' %'))) > 0)))

    It does not return all the lines which is good, but displays the message "no data found".

    Does anyone have an idea how to do a sort of 'Enter the query' mode by default when the page opens upward, then after entering the search parameter and submit, only they must return lines or no data found.


    One way I can think is actually to finish with the default search and add a custom text field and a button and dynamic action to run the report. But was wondering if there is a better way?

    Thank you

    Published by: ryansun on September 18, 2012 21:07

    Published by: ryansun on September 18, 2012 21:07

    Hello

    I made the report non-null region (item value, column in expression1 is NOT NULL) and the expression entered: P1_REPORT_SEARCH. But throughout the region including the search bar is hidden.

    I also changed the: P1_REPORT_SEARCH property to Yes. Still no luck

    I'm doing something wrong? >

    The wizard creates a separate region for the search bar, Search. Looks like you have some thing.
    a. move the search in a distinct region
    b. move research and report in 2 under regions, in the same existing Sub region. make the report of the subregion.

    See you soon,.

  • PanelTabbed of the ADF. How to choose the default tab when the page loads

    Hi all
    I have a panelTabbed with three showDetailItem component, and I want the first showDetailItem to the tab by default whenever the page loads.
    Currently, the default tab, that's all that the tab that was last visited.

    I tried to disclosed attribute set to true on the first tab and false for the other, but it does not work.

    Thanks in advance.

    Published by: 947142 on July 18, 2012 11:03

    Have a method in the managed bean that is called when the page is loaded and set the tab disclosed.

    Here is a sample based on your use cases:

    PanelTabbed.jspx:



    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >












    PanelTabbedBean.java:

    import java.util.List;

    javax.faces.component.UIComponent import;
    Import javax.faces.event.PhaseEvent;

    Import oracle.adf.view.rich.component.rich.layout.RichPanelTabbed;
    Import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
    Import oracle.adf.view.rich.context.AdfFacesContext;

    public class PanelTabbedBean {}
    Private RichPanelTabbed myPanelTab;

    public PanelTabbedBean() {}
    }

    {} public void setMyPanelTab (RichPanelTabbed myPanelTab)
    this.myPanelTab = myPanelTab;
    }

    public RichPanelTabbed getMyPanelTab() {}
    Return myPanelTab;
    }

    {} public void onPageLoad (PhaseEvent phaseEvent)
    If (phaseEvent.getPhaseId () .equals (phaseEvent.getPhaseId (). RENDER_RESPONSE)) {}
    If (!.) {AdfFacesContext.getCurrentInstance () .isPostback ())}
    If (this.myPanelTab! = null) {}
    List childUIComponent = this.myPanelTab.getChildren ();
    If (childUIComponent! = null & childUIComponent.size () > 0) {}
    for (int i = 0; i)< childuicomponent.size();="" i++)="">
    If (childUIComponent.get (i) instanceof RichShowDetailItem) {}
    If (i == 0) {}
    ((RichShowDetailItem) childUIComponent.get (i)) .setDisclosed (true);
    } else {}
    ((RichShowDetailItem) childUIComponent.get (i)) .setDisclosed (false);
    }
    }
    }
    }
    }
    }
    }
    }
    }

    Thank you
    Nini

Maybe you are looking for