How to apply CSS to Existing Site

Help! I am a Macromedia Dreamweaver user. I manage a few simple sites on a volunteer basis. I was recently forced by a new computer purchase to upgrade to CS4 for Vista compatibility.
I have never used Style Sheets. I've spent several hours this afternoon combing the web for instructions and found that most of the information assumes way more knowledge than I have, and the more basic articles seem to provide nice overviews of what CSS is and why one might want to use it, or possibly how to build a new site using CSS, but they have not answered my "how to" questions about my existing sites.
My two most pressing unanswered question are these:
1)  I seem to have successfully created a new CSS rule by selecting a section of text in the document, setting the Property Inspector to CSS and then naming the rule and choosing a font style and size (although the new rule dialog box never appeared - I did it all in the Property Inspector). Do I have to go through the whole site and apply this rule individually to each section of body text? The existing document has all the text set by its specific features (e.g. Arial Bold 10), not using "heading 1" "heading 2" etc.
2) I do not use Dreamweaver to upload my finished documents. I use a site-managemet ftp page on my host server. Once I've created these CSS style rules, is there anyting that I need to upload besides my edited pages?
Thank you in advance for help.

If you are using the same font family, font size, colour, etc... you can use a separate style sheet and just use
body {font-size:14px; font-family:arial, helvetica, sans-serif}
this will make all your site the same body style.
Do I have the book for you:  CSS in easy steps by Mike McGrath  isbn#1-84078-301-x
It's a really good beginner's book to CSS.  And really easy to read!  Was a huge help to me in my beginnings of CSS.
Also, www.lynda.com is a great resource.
Hope this helps!
You'll need to upload that extra css page with the rest of your site!
Message was edited by: JulesN

Similar Messages

  • How to apply CSS to a BC menu

    Hi there,
    I have done a lot of reading, gone to BC gurus, looked at Liam's post on Web Menu V2and I am still stumped on this one. The BC gurus tutorial and Liams' item were way above my head.
    How do you apply CSS you have written to a BC menu?
    I have set up a BC menu and put items in it. The menu type is CSS (HTML) Only
    The menu items have a name, a page link Item Height of 30 and .menuLeft in the Item CSS Class Name
    The template the menu is on is responsive and linked to a stylesheet with the CSS code below in it.
    The menu is completely unaffected by the CSS in the stylesheet. All menu items have a dot in front of them, and look like the default link style for the site.
    So the CSS below is not having any affect on the menu items. Why is this?
    What basic, simple step have I missed here?
    How do I get the menu in BC to notice the CSS below?
    I have also tried making the CSS into an id #menuLeft and putting that into the Item ID Name field in each menu item. The CSS is still completely ignored. Why? (anguished cry)
    .menuLeft {
              list-style-type: none;
    .menuLeft ul{
              list-style-type: none;
              padding: 5px;
              margin: 0px;
              line-height: 30px;
              border: thin solid #CCCCCC;
              border-radius: 3px;
              text-decoration: none;
    .menuLeft li a:link {
              color: #3F823D;
              text-decoration: none;
    .menuLeft li a:visited {
              text-decoration: none;
              color: #999999;
              background-color: #B9E09A;
    .menuLeft li a:hover {
              color: #999999;
              text-decoration: underline;
              background-color: #B9E09A;
    .menuLeft li a:active {
              color: #999999;
              text-decoration: none;
              background-color: #B9E09A;

    Hi Liam,
    The class is definitely .menuLeft and that is what is showing in the code. However, for the menu, only the line height set in the backend of BC is showing. All other styling in the CSS is ignored. By the way I have to have two CSS stylesheets as this is a responsive design using CCDW. You have to use a separate stylesheet to style body, links, headers and other items. I have done this in eternityfonts.css which is where the styling for the menu is. The webpage is using all other instructions from the eternityfonts.css file, including headers, links etc, but it is ignoring the menu styling.
    TEST PAGE SHOWING THE MENU NOT WORKING
    Here is the test page where I am trying to style the menu. http://eternitycosmetics.businesscatalyst.com/test
    It is linked to these stylesheets:
    <link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" /> BC standard stylesheet with all sites
    <link href="../boilerplate.css" rel="stylesheet" type="text/css"> DW CC stylesheet that comes with fluid design
    <link href="/stylesheets/eternity4.css" rel="stylesheet" type="text/css"> DW CC stylesheet that accompanies the fluid design - the fluid design will break if I edit this stylesheet manually
    <link href="/stylesheets/eternityfonts.css" rel="stylesheet" type="text/css"> stylesheet containing body bground, header, a link and other manual styles for the site. I can edit this stylesheet manually
    CODE RENDERING ON THE PAGE
    Here is the code on the page for the menu in question when I do view source. It appears to be ignoring the .menuLeft code in eternityfonts.css and just looks at the setup in the BC menu.
    <div id="leftMenu" class="fluid"> (this div is in the DWCC generated stylesheet that I cannot touch called /stylesheets/eternity4.css)
    <script type="text/javascript" src="/CatalystScripts/Java_DynMenusSelectedCSS.js"></script><!-- Dynamic Menu Begin CSS Output -->
    <div id="cat_673629_divs">
    <ul id="nav_673629">
    <li class=".menuLeft" style="height:30px;"><a href="/index.htm">Home</a></li> (this class is in the /stylesheets/eternityfonts.css stylesheet that I can edti)
    <li class=".menuLeft" style="height:30px;"><a href="/about-us">About Us</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/products">About Our Products</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/impact-cosmetics">Products Online</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/anti-aging-treatments">Anti-aging Treatments</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/acne-treatments">Acne Treatments</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/doctor-services">Doctor Services</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/testimonials">Testimonials</a></li>
    <li class=".menuLeft" style="height:30px;"><a href="/contact-us">Contact Us</a></li></ul></div>
    <script type="text/javascript">catSetSelectedCSSItem('nav_673629');</script>
    <!-- Dynamic Menu End CSS Output --></div>
    BC MENU SETUP SCREEN
    Here is the BC setup screen showing that I have applied the class of .menuLeft to the menu items:
    CSS CODE THAT IS BEING IGNORED WHEN THE PAGE IS DISPLAYED
    Here is the code in eternityfonts.css that is not being applied to the CSS menu. I have bolded the code that is not being actioned in the BC CSS/HTML menu.
    WHY IS THIS CODE BEING IGNORED?
    What step have I missed here?
    Full dump of code in eternityfonts.css
    @charset "utf-8";
    /* CSS Document */
    body,td,th {
              font-family: Arial;
              font-size: 12px;
              color: #000;
              font-style: normal;
              font-weight: 400;
    body {
              background-color: #FFFFFF;
              background-image: -webkit-gradient(linear, 50.00% 0.00%, 50.00% 100.00%, color-stop( 0% , rgba(178,221,145,1.00)),color-stop( 100% , rgba(255,255,255,1.00)));
              background-image: -webkit-linear-gradient(270deg,rgba(178,221,145,1.00) 0%,rgba(255,255,255,1.00) 100%);
              background-image: linear-gradient(180deg,rgba(178,221,145,1.00) 0%,rgba(255,255,255,1.00) 100%);
              background-repeat: no-repeat;
    a {
              color: #3F823D;
              text-decoration: none;
    a:visited {
              color: #3F823D;
              text-decoration: none;
    a:hover {
              color: #3F823D;
              text-decoration: underline;
    a:active {
              color: #3F823D;
              text-decoration: none;
    h1 {
              font-size: 20px;
              color: #3F823D;
    h2 {
              font-size: 18px;
              color: #FF7546;
    h3 {
              font-size: 16px;
              color: #3F823D;
    h4 {
              font-size: 14px;
              color: #FF7546;
    #buyButton2 {
              width: 100px;
              margin-top: 10px;
              padding-top: 5px;
              padding-bottom: 5px;
              text-align: center;
              border: thin solid #CC6600;
              border-radius: 3px;
              background-color: #FFAC77;
              float: right;
    #buyButton1 {
              width: 100px;
              margin-top: 10px;
              padding-top: 5px;
              padding-bottom: 5px;
              text-align: center;
              border: thin solid #CC6600;
              border-radius: 3px;
              background-color: #FFAC77;
    .menuLeft {
              list-style-type: none;
    .menuLeft ul{
              list-style-type: none;
              padding: 5px;
              margin: 0px;
              line-height: 30px;
              border: thin solid #CCCCCC;
              border-radius: 3px;
              text-decoration: none;
    .menuLeft li a:link {
              color: #3F823D;
              text-decoration: none;
    .menuLeft li a:visited {
              text-decoration: none;
              color: #999999;
              background-color: #B9E09A;
    .menuLeft li a:hover {
              color: #999999;
              text-decoration: underline;
              background-color: #B9E09A;
    .menuLeft li a:active {
              color: #999999;
              text-decoration: none;
              background-color: #B9E09A;
    .menu{
    border:none;
    border:0px;
    margin:0px;
    padding:0px;
    .menu ul{
    height:50px;
    list-style:none;
    margin:0;
    padding:0;
    .menu li ul{
    display:none;
    height:auto;
    padding:0px;
    margin:0px;
    border:0px;
    position:absolute;
    width:200px;
    z-index:200;
    .menu li:hover ul{
    display:block;

  • How to update CSS across 50 sites?

    I am in a strange dilemma. I have about 50 sites that use a site template and each has its own alternate stylesheet. I have an update to an existing CSS class inside this alternate stylesheet. Does anyone have a recommendation on how I can make this update
    instead of manually updating each and every stylesheet?
    Is there an attribute in the manifest file that lets me overwrite an existing file? If that is possible I could wrap it in a feature and activate it across all 50 sites.

    Have you looked at writing a PowerShell script to automate this process?
    1. Export Site and AlternateCSSUrl to a file. Download the corresponding stylesheets as well.
    2. Do a find and replace across all the style sheets.
    3. Upload the style sheets to the respective sites as per the export file created in step 1.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.
    Thank you Guru! I have the updated stylesheet which I can upload to respective but not sure about export process. Do you have any articles?

  • How to apply CSS style values to h:messages ?

    Hi Folks,
    I'm quite new to JSF development. What I'm currently trying to do, is to apply a CSS style for a <h:messages> tag:
    <h:messages globalOnly="true" style="color: red;" layout="table" />Unfortunately the style "color: red;" is not being applied to the generated HTML table (or list):
    <table>
       <tr>
          <td>My Error Message!</td>
       </tr>
    </table>But I assume the generated HTML should rather look something like this:
    <table style="color: red;">
       <tr>
          <td>My Error Message!</td>
       </tr>
    </table>I'm using MyFaces 1.1.3 with Tomcat 5.5. Is this maybe a bug in MyFaces?
    Salute

    We speak HTML here.
    Let's see what you have tried so far, please.
    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
    ==================
    "Buescorpmtf" <[email protected]> wrote in
    message
    news:g3p16e$j03$[email protected]..
    >I have been trying to apply a simple CSS style of a
    rounded border to my
    >web
    > pages. I received the coding and images from
    http://www.roundedcornr.com.
    > I
    > downloaded the images and linked them in the CSS style
    editor. I tried to
    > apply the style to the webpage/container, but it won't
    apply. This seems
    > like
    > a pretty simple task, but I can not get it done.
    >
    > Does anyone know how to do this? Step by Step and in
    plain English? :)
    >
    > Thanks
    >

  • How to make css 2 column site map?

    Hello
    Wondering what's the best way to convert this site map page -
    http://www.enhancedwireless.net/Company/siteMap.shtml
    - to css? I'd like two columns as is now. How would I do this?
    Beginner at css.
    Thanks
    KB

    Hi,
    I built something very similar for a client using only css.
    Take a look at
    http://www.mra-inreach.com/sitemap.html
    You can see the css file that I created for the styling and
    positioning of some simple unordered lists.
    You are welcome to disect the html and css to see how how I
    did this.
    There are also plenty of css tutorials on css, which I
    recommend you start searching for if you are a serious
    developer/designer.
    Regards
    Nick Barling
    www.barkingweb.com

  • How to apply CSS to a JEditorPane?

    Hi all,
    I am working on report displaying and printing.
    the report is in HTML format.
    if the font size on the screen is acceptable, the result of printing font size appears to be too big.
    i want to apply different CSS for displaying and printing.
    where should i get start from, is there any tutorial? or anyone can show me some demo codes?
    thank you.

    You can use "style class" or "inline style" properties to achieve this.
    For both properties you can use EL or managed bean.
    For example:
    inlineStyle="#{bindings.YourField.inputValue == 'something' ? 'color:red;' : 'color:blue;'}"
    styleClass="#{bindings.YourField.inputValue == 'something' ? 'style1' : 'style2'}"
    Dario

  • How to apply metadata to sharepoint site collection

    Hello,
    We have almost 1000 teamsite and we are working to arrange those according to department and site admins. So requirement is Let say if the HR department has 10 team sites, those 10 team site's department should be marked as "HR". Now how can we
    achieve this? I know we can create the term set in the Managed Metadata service application with all the departments but then how we can relate those terms to site collections? Also it should come up in the search as well. So we I do I search for department
    HR, I should get all 10 sites. Please share your thoughts
    Thanks in advance.

    Hi!
    Look at the article - it seems will be an ideal solution for your task. I hope it will work or can be easily patched for SharePoint 2013:
    http://blogs.msdn.com/b/maximeb/archive/2010/08/16/adding-metadata-to-your-site-collection-for-a-complete-secure-refinement-enabled-site-directory-on-sharepoint-2007-and-sharepoint-2010.aspx

  • How to apply passwords to existing PDF files?

    My MS-Access app creates about 1000 pdf files.  Each file is required to have a unique password and will be emailed as attachments via a VBA procedure in Outlook 2007.    Certificates are not feasible, despite my objections.  So I am looking at having to manually set the 'Open File' password for each file individually.  The files are created in an Access '97 VBA procedure (by sending the results of an Access Report to the Adobe PDF Printer).  Is there any way with VBA (either Access '97 or Outlook '07) to apply a unique security policy or otherwise set a unique 'Open File'  password for each of the files, either as they are being created and saved - or after the fact?
    I can create an Action in PRO X and manually select all the files and set the passwords.  I can then encrypt and password-protect all the files at once - but they all get the same passwords - ok for 'Permissions', but not for 'Open'.  Can Action fileds be modified from VBA?  Or is there a way to creat an Action that can modify another Action?  For example, if there is an Action named "Apply Pswd" which will apply a predefined common set of passwords to all files selected, can there be an Action, named "Apply Unique Pswd" that will update the 'Open' password field in the "Apply Common Pswd" Action as well as the name of the individual file that is to have that password?  Sort of like passing parameters to a function.  i.e.:
    "Apply Unique Pswd":
    1. Get next .pdf file from directory.
    2. Get next password (whether caluclated or read from a list).
    3. Open the "Apply Common Pswd" Action.
    4. Change the 'Open' password and the name of the file to select (the 'Permissions' password does not change).
    5. Execute the "Apply Common Password" Action - which at this time is only affecting a single file.
    6. Verify the 'Open' password (or bypass the verify step, if possible).
    7. Loop through all files in the directory.
       or
    3.   Don't use Actions - save the .pdf file in such a way that the common 'Permissions' password and the current 'Open' password are applied to the appropriate file.
    3a. Goto 7.
    I have also investigated Secure Envelopes in Outlook, but again, it appeas to be a manual procedure to apply unique passwords.
    I would greatly appreciate any tips, suggestions, snippits, or ideas - or enlightenment that it is just not possible to create .pdf files with passwords in VBA nor to use VBA to set the passwords post-creation.

    usna73tx  
    I am looking for similar thing, I need to apply a password and permissions to thousands of PDF files & I do not want to open them all manually.
    Did you ever find a solution?

  • Edit Existing Site With Dreamweaver

    Im sure this question has been asked 100 times but how do I edit an existing site (published and on the web) with Dreamweaver CS5.5? I took over as webmaster last month at a company and would like to edit the companys website. How do I download the files off the web? I can do it with Contribute but not Dreamweaver.

    Create a local site folder in DW.  Site > Manage Sites > New.
    Go to Advanced > Remote info and enter your log in-details (FTP, host URL, username, password).
    Test connection to server.
    Then GET files from server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Attach existing CSS style sheet to existing site

    Hello all,
    I have an external CSS style sheet called default.css. I have an existing site of 61 pages that I want to apply default.css. Is there a way to apply a CSS file to multiple pages? Or am I doomed to going through the process 61 times?
    Thanks for your time.

    Thanks for replying Ben.
    I 'forced' it to work. Fortunately, the pages were all linked to the same style sheet, so I just did a 'Find and Replace All'.
    Thanks again.

  • How to Apply a Newly Created Access Policy on Existing Users in OIM????????

    How to Apply a Newly Created Access Policy on Existing Users in OIM?
    When the rule is getting failed the user is getting removed from the group but resource is not getting revoked. This is happening only for the old uses..for the users which i created now it working fine..i mean its resource is getting revoked.
    (Retrofit access policy" is checked on the Access Policyand Revoke if not longer applied is checked.)
    For the old users i see the POl_Key is null, for new users i see a value '10'. So i updated the pol_key for old users same as it got generated for new users '10'.
    i even updated the form version too but still revoke doesn't work.
    I cant go for the below approach..
    In order to apply a newly created Access Policy on existing users, one has to make sure that:
    1) "Retrofit access policy" is checked on the Access Policy.
    2) Then run the "Set User Provisioned Date" Schedule task to apply the Access Policy on the existing users in OIM.
    Note: After 9.1.0.1 BP03 the access policy execution has been moved to a new scheduled task "Evaluate User Policies" as mentioned inDocument 839368.1 :How to Use Access Policies to Provision with Groups.
    Is there any other approach i can try.. if you have any idea please reply me asap
    Thanks..

    Thanks for the reply kevin..
    We decided to try the Schedule task (Set User Provisioned Date).
    But i see one problem here after seeing this post in metalik --> Can Access Policies Manage The Life-cycle Of Users Created via Reconciliation? [ID 1136540.1]
    According to this post Access Policies framework does not manage users who are obtained either through trusted reconciliation or target reconciliation.
    Is there any custom way to achieve this??
    How does the access policy framework revoke resource work? (revoke if no longer applies)??
    Edited by: IDMuser19 on Jun 21, 2011 11:43 PM

  • How to work with an EXISTING wordpress site in side DW CS5 (yahoo hosted)

    Have and existing  Wordpress site that is hosted by Yahoo.  Recently upgraded to  Dreamweaver CS5. Was really excited about working with my Wordpress  files inside of DW CS5 with all of it's new capabilities, bells and  wistles.  I can't seem to get it set up right.
    Is Dreamweaver CS5 ABLE to display existing wordpress sites with dynamic content? And can anyone please help me figure out how.
    I have been thru several lynda.com video tutorials including:
    Dreamweaver CS5 and Wordpress 3 by Joseph Lowery (over the last month)
    Dreamweaver CS5 with PHP and MySQL by David Gassner (over the last month)
    PHP with MySQL essetial training by Kevin Skoglund (about a year ago when trying to learn php)
    Self-hosting a Wordpress site (about a year ago when I set up the site)
    I have also been scouring this forum and the web trying to find the answer to what seems to be a very common problem.
    Using Mac OSX 10.6.6
    MAMP
    Dreamweaver CS5
    Wordpress 3
    Yahoo web hosting
    Everything works fine with the exercise files but as soon as I try my existing site files it gives me one of several errors
         cannot establish a connection to the database
    I set up my site thur the DW site manager with the
    Local Site Folder set to: /applications/MAMP/htdocs/nate
    server set to:
    name: testing
    connection using: local/network
    server folder:  /applications/MAMP/htdocs/nate
    web url: http://localhost/nate
    under the advanced tab i have set the server model to: php mysql
    and have the testing box checked in the site set up dialog box
    I also set a remote server:
    name: remote
    connect using: ftp
    ftp address: ftp.MY_SITE_NAME.com
    username: myusername@MY_SITE_NAME.com
    password:  mypassword
    under the advanced tab i have the server model set to: php mysql
    and have the remote box checked in the site set up dialog box
    when tested connection was made.  I also downloaded all of my site files using this connections (it took hours).
    I installed MAMP and set the ports to the defauls (80, 3306) host: localhost username: root password: root
    If i change the database settings in the wordpress wp-config.php file  to: localhost, root, root it works and displays my page as I would  expect in live view or browser but without the main content area or  posts - displays a 404 error where the content should beI have exported my wp database and imported back into my local testing server thru phpmyadmin.
    I have also gotten this error at various tries in the set ups: "dynamically-related files could not be resolved because of an internal server error"
    I am currently getting this error: "Dynamically related files could not be resolved because the site definition is not correct for this server"
    It is not asking me if I want to save files to the server when I hit live view.
    Everything  works fine with the lynda.com exercise files and with the generic wordpress files.  I can open any page -  live view or view in browser  - can access and modify the imported  database thur dreamweaver and phpmyadmin. I am only having these problems with my existing site files. I have done the complete set up at least 5 times from scratch going thru the videos and various tutorials step by step.  I dont want to use the starter files that come with wordpress installations I want to use my highly modified pages/themes/database

    DW does not work with a WP installation that has anything other than the default (numeric) permalinks. Apparently no-one ever tested this case during the development and prerelease phase, which is a shame, because very few WP installations use default permalinks. It's a point that Joseph Lowery doesn't touch in his tutorial, and of course the tutorial WP installation works perfectly.
    Hope that helps, although it may disappoint (as it did me, and a lot of other folks). Here's hoping this is addressed in a dot release.
    Alan

  • How to apply ontology on the existing RDF model

    Hi,
    I am new to Semantic web technologies.I am facing following issue.
    I have installed Oracle 11g with semantic support.
    I have few tables which stores customer,products information. eg :CUSTOMER_MASTER,PRODUCT_MASTER.
    Now used d2rq client and generated N-TRIPLE files by connecting to the above scheme i.e converted the tuples to triples generated RDF content.
    I could store the RDF data into Oracle 11g using the jena APIs. I was successfull till this point.
    Now , I have defined an ontology for the above entities using protege. I was able to store the model to Oracle 11g using Jena APIs.
    But I am confused with following issues.
    1. How can I apply my ontology definition to my existing RDF model.
    i.e. - I have created a ontology definition MyOntology.owl and loaded into Oracle 11g name MyOntologyModel.
    I already have another RDF model which got generated from the relational table i.e. CustomerRDFModel .
    Now, how can I apply MyOntologyModel to CustomerRDFModel and execute meaningfull queries.
    While defining the ontology, shall I use the same class names which are used in the CustomerRDFModel ? How can I link my ontology and RDF content ?
    eg:- I have a entities such as CUSTOMER_MASTER and PRODUCT_MASTER .Now in my ontology, if I need to bring some ontology definitions , shall I use the same entity names while defining Ontology.
    Otherwise, how we can apply ontology on existing relational tables ?
    Is it not required to convert the tuples(relational data) to RDF data for running the semantic queries ?
    Please provide me some pointers on these issues .
    Thanks
    Aneesh K

    Let me explain it like this:
    The triples (data) you automatically generated using D2RQ must conform to some ontology definition (lets use ontology schema in place of ontology definition for easier understanding). I believe D2RQ generates ontology schema/definition also, along with data. Please check once. But if it does not then it is your responsibility to either manually/automatically generate a ontology definition/schema that has the same class & property names (URIs) as what your data (generated thru D2RQ) has.
    Once you have a ontology schema and ontology data (that conforms to our schema), you have two options to link them:
    1) Load both schema and data to a single ontology model in oracle database.
    2) Load them into separate models and while querying you can mention both the models in the query.
    But I believe that the database does not do any kind of validation of data against schema in any of the above case (probably because that is what is intended in the W3C OWL specification - no distinction btwn data & schema) . But if you have schema in the database you can actually do a lot if inferencing (RDFS inferencing, OWL inferencing etc..)
    Thanks,
    Rajesh.
    PS: All those Ontology pundits, correct me if I am wrong.
    Edited by: rajesh narni on Jul 9, 2010 4:30 AM

  • How to apply different CSS styles to different table cells?

    I have an h:dataTable table and I would like to apply different CSS styles to different table cells depending on their content. If I were doing JSP I would probably have a <c:if> test on the cells, and give them a style name depending on contents, and then define the styles in a separate style sheet. Is there a way in JSF to do the equivalent? Thanks.

    mitchgart wrote:
    BalusC wrote:
    How to achieve a cell-specific style is already answered in my 1st reply of this topic.That tells how to apply a style to the text (or other content) inside a cell but not how to apply a style to the <td> as a whole. It would work for something like text font or text color but not cell border.
    I'm thinking I can mark the content somehow and then have javascript traverse the DOM, find marked content, and traverse outward to the enclosing <td>. Is there a better way?BalusC already spoke about rowClasses and columnClass attributes, I assume those are insufficient.
    The Tomahawk dataTable component has the rowStyleClass and rowStyle attributes for assigning CSS to the HTML tr tag. One is allowed to reference the row data variable when assigning values to these. However, see https://issues.apache.org/jira/browse/TOMAHAWK-523 for workarounds to bugs in some implementations.
    The Tomahawk column component has the styleClass and style attributes for assigning CSS to the HTML td tag. These also may reference the row data variable.

  • I need to know how you would publish a new site into an existing site

    Okay I have a new Dreamweaver website that I just created for my brother in-laws law firm and want to publish in onto an ftp server but the sever already has the existing site published onto it and before I have it pulled down I would like to publish this new site on there to see if everything is going to work okay and if everything is displayed correctly.  Does anyone know if there is a way I can do this and how to do it?  Please help!!!
    Thanks

    I typically create a TEST folder on the remote site.  Upload new pages and dependant files there for debugging and testing purposes.  Then using a 3rd party ftp ware (filezilla, cute ftp or Ws_ftp pro), I move the new site files & folders over to the root directory.  If you have used the same filenames as were on the old site, new pages will overwrite the old ones.  If you used a different naming convention, you will need to delete old files from server.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

Maybe you are looking for

  • Reconciled amounts appears in customer  aging report

    Dear all, When we take aging report for reconciled transactions,reconciled amounts appears in aging days ,the invoices which are reconciled still showing in Aging report  (Suppose we have ar  invoice in 0-30 days and its payments (journal entry ) mad

  • Document being distributed no changes not possible and btadminh could not be locked

    Hi All, I am getting ERROR: "document being distributed no changes not possible" & WARNING:"BTadminH could not be locked" in CRM WEBUI while trying to edit the order. I checked all the BDOCs and smq1, smq2 ,smw01 here are no queues stuck here. I also

  • Do I have to cut and paste album artwork for all the albums in my library?

    So my 4gb ipod 1st gen is pretty much dead so I've bought a 3rd gen. 8gb nano, upgraded my iTuunes software to 7.5 and syncd my library onto my new iPod. All songs I've bought from iTunes have album artwork and one other old album I uploaded myself a

  • Is the iMac 1.25 ghz AirPort compatible?

    I'm considering going wireless because my wife has a MacBook through her school and wants to be able to use it more at home. Our home iMac is now five years old and is our main computer for the family ... will an AirPort Extreme (or Express? That's a

  • Financial Reports Migration

    Hi, I have now installed R and A and configured properly. Now I need to do some migration of reports from one environment to another. I have been trying two different ways: 1. Using the LCM and 2. Using the File -> Export/ Import in Workspace. The LC