Why is my CSS style not applied to my HTMLB page ?

Hello !
I'm using a css file to define the layout of my htmlb page... but the layout is not applied.
When I specify the layout CSS in a common html page the layout is applied but not for an htmlb page.
Could someone let me know where I'm wrong ?
EG :
My htmlb page :
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content>
  <htmlb:page title=" " >
      <html>
            <head>
            <link href="style.css" rel="stylesheet" type="text/css">
            </head>
            <body>
            text1
    <htmlb:form>
        text2
    </htmlb:form>
            </body>
      </html>
  </htmlb:page>
</htmlb:content>
My css file style.css :
<%@page language="abap"%>
body {
    background-color: #990000;
    font-family: Verdana;
    font-size: 32x;
    line-height: 32px;
    color: #666666;
As a result, I have a blank page (and not red) with the text "text1" and "text2" written.

This code you have is unfortunately completely bogus. It is just not going to work. Writing HTMLB tags are easy. It takes but minutes to make the magic appear in the browser. But, you have also have to understand a little about what is happening.
At a very first, I would like to recommend this link: <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">Getting Help</a>. You are specifically interested in the section that shows you how to get help about specific tags.
As a next step, look at the help for the <htmlb:page> tag. It is the first important one. See how it is a collection of other <htmlb:document*> tags.
Thereafter, look at SBSPEXT_HTMLB/document.BSP for an example on how to replace the <htmlb:page> sequence in your application.
Once this is done, place you "<link ...>" sequence directly after the <htmlb:headInclude> tag that you have now on your page.
Compile, test, assign 10 points.

Similar Messages

  • Why is my iPad suddenly not opening the Yahoo home page? I get a message saying Safari can not open the page due to too many redirects. This started yesterday. I shut my iPad down and still no luck.

    Why is my iPad suddenly not opening the Yahoo home page? I get a message saying Safari can not open the page due to too many redirects. This started yesterday, and I have already tried shutting off my iPad.

     

  • Why is the background color not applied in one case?

    Hi,
    I'm using RH 7 and WebHelp.
    I apply a TableHeading style to the first row of my tables. The TableHeading style is supposed to fill the cells of the first row with a background color of blue, and the text is in white. It works fine except for one table. I think TableHeading style was not applied in the Word document when I imported this topic. I tried to apply the TableHeading style to the first row, and it says it is applied in the HTML. But, the background blue does not fill the cells.
    Here is what I am trying to achieve:
    Here is my problem table:
    I can see in the HTML that the background color is not present in the code. Here is the code for the example that is correct:
    <p class=TableHeading>Chapter</td>
    <td style="border-left: none; border-right: solid #000000 1.0px; border-top: solid #000000 1.0px; border-bottom: solid #000000 1.0px;
              width: 279.4pt; padding: 0in 5.4pt 0in 5.4pt; background-color: #003399;"
    bgcolor=#003399 width=279.4pt>
    <p class=TableHeading>Description</td></tr>
    <tr><td style="x-cell-content-align: top; border-left: solid #000000 1.0px; border-right: solid #000000 1.0px; border-top: none;
                       border-bottom: solid #000000 1.0px; width: 182.85pt; padding: 0in 5.4pt 0in 5.4pt;
                       padding-left: 0px; padding-top: 0px; padding-right: 0px;
                       padding-bottom: 0px;" valign=top width=182.9pt>
    Here is the code for my problem table:
    <p class=TableHeading>Activity</td>
    <td style="border-left: none; border-right: solid #000000 1.0px; border-top: solid #000000 1.0px; border-bottom: solid #000000 1.0px;
              width: 168.0pt; padding: 0in 5.4pt 0in 5.4pt;" width=168pt>
    <p class=TableHeading>Keyboard Shortcut</td></tr>
    <tr style="x-cell-content-align: center;" valign=middle>
    <td style="width: 374px; x-cell-content-align: top; border-left: solid #000000 1.0px; border-right: solid #000000 1.0px;
              border-top: none; border-bottom: solid #000000 1.0px; padding: 0in 5.4pt 0in 5.4pt;
              padding-left: 0px; padding-top: 0px; padding-right: 0px;
              padding-bottom: 0px;" valign=top width=374px>
    Here is the code from the CSS:
    p.TableHeading {
    background-color: #003399;
    punctuation-wrap: simple;
    text-autospace: none;
    font-size: 10.0pt;
    font-weight: bold;
    color: #ffffff;
    font-family: Verdana, sans-serif;
    margin-left: 3pt;
    margin-right: 3.0pt;
    line-height: 120%;
    margin-top: 0pt;
    margin-bottom: 0pt;
    LI.p-TableHeading {
    punctuation-wrap: simple;
    text-autospace: none;
    font-size: 10.0pt;
    font-weight: bold;
    color: #ffffff;
    font-family: Verdana, sans-serif;
    line-height: 120%;
    Any suggestions?
    Thanks,
    Julie
     I don't understand why the TableHeading style is not applying the background color for the one table. I'm guessing I could just add it to the code using the HTML editor. However, I wasn't sure if that was the best way to fix this problem or if I would create another problem.

    Hi Willam,
    Thanks for your answer, and I will go ahead and add the background color to the problem table.
    However, I am still puzzled as to why the background color is applied to the cells in the other tables and not the problem table. I'm not sure what I did to cause the problem - how I applied the TableHeading to the table cell in one case and not the other. Any ideas how I can avoid this problem?
    I will not use the Word documents going forward and will only make changes with the RH editor.
    Thanks again,
    Julie

  • Styles not applied [was: Help for DW Dunce]

    Just a little advice on css pls, i have a created a new css style and  named it "list", the colour of the font is set to #807e7e.  When i  upload the saved page to my server, the list is there but the text is  black, ive tried creating a new class, id and tag and applying the  settings, but nothing seems to change the text colour and the font style even though its  set in the rule definitions?
    Im sure its very simple but Im stumped ?
    The page is here
    http://www.craftypixel.co.uk/takeaway.html
    its the bullet list on the right
    Please keep answers simple

    I see this is your first post. Welcome to the forum. When posting questions, please use a meaningful subject line as it helps others identify problems where they might be able to help. It also helps others who might be suffering a similar problem identify threads that have been marked as answered.
    Now, to your particular problem. I have looked at the page you linked to, and the reason for the style not being applied is very simple. There is no style rule called .list in your style sheet. Moreover, you don't have a class applied to the list.
    I also noticed that your naming conventions are rather odd. The main content on the left has been given a class called right, and the sidebar on the right is in a class called left. I presume you must have changed your mind about the relative positions, which is why they're now reversed. But it's always a good idea to avoid class names that describe position or colour. It's better to use something like main and sidebar. Then it doesn't matter which side of the page you put them on. With your current naming, it's going to be a nightmare to maintain.

  • 'Space after' style not applying to text in 'preview in browser' (chrome) or export modes.

    Hi all,
    I seem to run into this issue everytime I have two paragraph style applied within one text container.
    If I include a heading and apply a paragraph style which includes 'space after' and then some text below with another style it does not appear in either 'preview in browser' (Chrome) or in the exported html. The text appears butted up against each other. Please keep in mind there are no other paragraph or character styles applied to this container.
    It works if I 'unlink style from selection'.
    However this is extremely frustrating when you have a text heavy site with multiple paragraph styles - it effectively renders paragraph styles useless and generates excessive CSS code and a very time-consuming process if I need to go back and alter the paragraph styles.
    Does anyone else experience this issue? Can anyone shed some light on this?
    I need to get this site through to my client ASAP and would rather have a professional CSS file rather than one full of work-arounds.
    Adobe, please respond ASAP.
    Kind regards,
    Adam

    For two separate paragraph styles to work in one text container in muse,
    you need to use a hard return.
    You would use Character Styles if you want to use two specific styles inside one text container
    with just a "en space" between the text.
    This is based on using Muse generated CSS and not going into the CSS files after Muse generated the code and altering to modify the look.
    See attached file:

  • TOC Style not applying correctly

    I have a basic test InDesign document with a 'Paragraph Style A' applied to a few key headers throughout the document. I created a separate 'Paragraph Style B' for the table of contents to represent instances of Paragraph Style A. Style A is set to 8pt font. Style B is set to 14pt font. When I setup the Table of Contents in the dialog box, I have selected Style A to appear as Style B, but when I actually place the TOC, it's still showing up as Style A. Any ideas as to why?
    InDesign CS5 version 7.0
    Windows XP SP3
    Same problem on two different computers (with the same setup as listed above)

    When you say "When I setup the Table of Contents in the dialog box, I have selected Style A to appear as Style B" does that mean that you set "Style B" in the middle section of the dialog box in this format:
    Style: Style A
         Entry Style: Style B
    If you did that, it should work. If it does not, you might try restoring your preferences:
    http://forums.adobe.com/thread/526990

  • Style not applied to text

    Text in a CS4 document I'm editing has "missing fonts" (i.e. typefaces that aren't on my system). I've updated paragraph styles, so they all have the new, correct typefaces etc. While going through the document with the Find Font dialog, I've located some instances of type which still have the incorrect typeface associated with it. However, no override is shown in the appropriate entry in the Paragraph Styles panel, and clicking the style entry does not apply the correct formatting of the style to the text...
    Can anyone suggest why?

    Sorry, just answered my own question. The previous editor had applied a separate character style on top of the paragraph style.
    Don't know why, it doesn't serve any purpose except to confuse...
    Fell for it!

  • Live View worse than Design view, both bad, CSS & layout not applying

    Howdy,
    So I'm trying to do some work on the the page seen here:
    http://www.juniper.net/us/en/products-services/network-management/
    (I've attached a screenshot of it.)
    I  view the source for that page and copy it into a new blank page in code view using DW CS4.
    I copy all the relevant related files, as far as I know, including at least all the CSS and image files.
    I view the page in Design View, and some of the styles, primarily on the text are clearly being applied. The layout, though, is all wrong, with the navigation spread out over the top without any text styling or background images, tho a few other images do show up (one in the header area and some in the body, ones that should all be about in the same directory), and the content area pushed waay out the right.
    Live View is even worse, no styling at all on any of the text, and it doesn't seem to be able to locate any of the images, so it's all plain default HTML-styled text.
    This is a fresh installation of CS4.
    DW 8 seemed to have a similar problem rendering this layout in design view, but appplying a few design-time stylesheets, ones that should have been applying, but somehow weren't, seemed to do it, or at least pretty close. That same strategem did not seem to work here. Plus, doesn't the fact that the correct stylesheets show up as "related files" in the related files bar mean that DW knows about them and are/should be doing its level best to be applying them already?
    I'm not sure how much more I can share, but does anyone have any thoughts about how to make DW render correctly?

    So here's a little more info for a more complete picture of the problem...
    I do have access to the original CSS, JS, and image files...When I said that I copied all the files that I believe to be relevant, I mean that I downloaded all the files from the \assets and \shared directories from the content management system, which should contain all the CSS, JS, and image files that the page uses.
    When I view the file into which I saved the page's View Source on my testing server via an actual browser window, the page looks as expected.
    So, to sum up:
    All the support files and "related files" seem to be in place.
    When viewed through a browser fed by a web server, the file/page looks as expected. Checked in Firefox v3.5.3, IE 8, and Chrome v3.0.195.24.
    When viewed in Design View, the layout looks wonky, some of the styles seem not to be applied to the navigation/header area (notably, I guess, the positioning of the navigation and content area relative to the navigation, as well as some of the text styling on the navigation), and most if not all the styling (text formatting, layout) seems to be applying in the content area. The Related Files bar seems to list all the expected related files.
    When viewed in Live View, no styling is being applied anywhere. Live View is based on an integrated WebKIT browser, so it should render most closely to Chrome, right?
    I know little to nothing about relevant web server configuration. Could it be possible there's some web server configuration that's set up on Juniper's web server that Dreamweaver doesn't mimic, at least by default? Are there web server configuration settings for the integrated Live View "server" that I could check?

  • CSS Styles not displayed properly in design view - SOLVED (not 'Display Styles')

    For several weeks, I've been troubleshooting the issue of CSS
    and inline styles not being displayed properly when in Dreamweaver
    CS3 design view, and checking in to the forums occassionally to see
    if there was a solution other than making sure "Display Styles" was
    selected under View -> Style Rendering (it was, and still
    nothing would display properly!).
    After much frustration, I may have found the solution to
    those still experiencing the issue even after "Display Styles" is
    appropriately checked. I went in to my master template for the
    site, and found an erroneous <br> tag after the <link
    href> for the stylesheet, which I must have inadvertantly
    inserted when I added the code for the site's favicon. (You get so
    used to Shift-Enter in layout mode, it's almost automatic,
    regardless of what pane your in.) I can't believe I missed this
    before! Deleting the erroneous tag cleaned up the whole
    site.

    I had the same thing happen to me. After hours of trouble
    shooting I found a bit of inappropriate code left in the HTML.
    Cleaned that up and all is good. Seems like it is often something
    so simple. Guess that is why it is so maddening when i can't figure
    it out!

  • Problem with Css styles not showing in live view or when i browse

    I am using Mac osx 10.6 and building website with Dreamweaver CS5.  Sometimes div tags i create not showing styles or rendering in live view or when I browse but  showing in design view. I looked in dreamwever faq and they talk about not showing in design view to toggle the display styles. That is not the problem becuase it is check marked and I tried turning off and turning on and made no difference.I am using firefox browser.
    It happened before the other day too. But all of my other pages in this site that i have created the same way building with div tags and css styles. So not sure what the problem is. Maybe someone has a suggestion here.
    Johanna

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Portfolio</title>
    <style type="text/css"></style>
    <link href="css/jbstyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
    </head>
    <body>
    <div id="wrapper">
      <div id="mainnav">
        <div id="navbar">
          <ul>
            <li><a href="index.html"><br />
            </a></li>
    <li>
              <ul>
                <li><a href="index.html">          Home</a><a href="about.html">About</a></li>
                <li><a href="portfolio.html">Portfolio</a><a href="contact.html">Contact</a></li>
              </ul>
            </li>
          </ul>
      </div>
        <div id="contentinside">
          <div id="navbar2">
            <ul>
              <li><a href="design.html">Design</a></li>
              <li><a href="multimedia.html">Multimedia</a></li>
              <li><a href="webdesign.html">Web Design</a></li>
            </ul>
          </div>
          <div id="mm1thumb">Content for  id "mm1thumb" Goes Here</div>
          <div id="mm2thumb">Content for  id "mm2thumb" Goes Here</div>
        </div>
        <img src="images/multimsidebar.gif" width="212" height="615" alt="mmsdbr" longdesc="http://multimsidebar" />
      <div id="footer">
        <p> </p>
        <p>Johanna Bresnahan</p>
        <p>Web &amp; Graphic Design - http://www.johannabresnahan.com</p>
        <p> email: [email protected] ....phone....857•991•5717<br />
      </p>
    </div>
    </div>
    <!--end wrapper--></div>
    </body>
    </html> 
    Here is the html code above. not sure how to attach my file so get a visual. This is the first time I have used this forum.
    Johanna

  • CSS styles not displaying in Contribute CS3

    On some (but not all) of the computers at this organization, when you click "Edit" in Contribute, it doesn't show the CSS styles; in other words it displays in Times New Roman, and the top menus are spread accross the page; this means that users have to scroll way way down the page to see the content they need to edit; it also means that the page doesn't look at all like it looks in a browser.
    Any ideas? Is this something to do with Internet Explorer?
    Thanks for any suggestions.
    Jack
    Hendersonville, NC

    Make sure the address bar in Contribute is displaying your URL and not a file path.
    Your administrator can remedy this by going to the role settings and making sure the Home address is set to the URL.  If you can't get the admin to update the role settings, you can enter your URL into the address bar and then the site should be able to find linked style sheets.

  • CSS style not correct in IE8 but correct in MF and Chrome

    Hi,
    I'm working with Dreamweaver CS5.5 and in more new sites I get the same problem with css styles.
    I'm making a mistake but can't find it.
    See http://www.a2models.nl
    The next text has to be collored red.
    A2Models is wegens vakantie gesloten van woensdag 21 december 2011 t/m dinsdag 03 januari 2012. U kunt in deze periode gewoon bestellingen plaatsen.
    Het verwerken van bestellingen zal echter iets langer duren dan normaal.
    I made a div with a class melding.
    Can someone find the error?
    Thanks a lot.
    Carla

    rgba is NOT supported in IE8: (read link below)
    http://css-tricks.com/2151-rgba-browser-support/

  • CSS styles not loading on certain websites (facebook, wikipedia)

    Hello,
    I am running the latest ver of firefox on Windows 7
    Out of nowhere certain websites such as facebook or wikipedia don't seem to load up their CSS styles. So the sites are more or less unusable.
    I disabled all my plugins, restarted my laptop (its a lenovo thinkpad x220) did a CCleaner, ran a malware check, and its still happening. Javascript is enabled and I made sure page style is "Basic Page Style."
    Works fine on IE.
    Any ideas?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • CSS styles deleted from entire site's pages

    Out of nowhere today my styles are not showing up in my
    DESIGN VIEW in DW. When i look in the FILES>CSS STYLES window
    the CSS files are nowhere to be found. But, when i look in the code
    view of the html file i see this:
    @import url("../images/HC_Banner/HC_Banner.css");
    @import url("../DeptLayout.css");
    So they are in the code. And when i preview the page it
    previews with the styles in tact. So, i guess i am just dealing
    with the design view not showing the styles? When i import the CSS
    styles the view corrects itself and the layout is fine, with all
    styles applied appropriately. So do i have to go through every page
    in teh site and re-import the CSS styles to correct teh DESIGN
    VIEW? Is tehre a setting i accidentally de-activated? What's up?
    Thanks for any help.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Haltom City Texas Trash-Off</title>
    <style type="text/css" media="screen">
    @import url("../Banner Files/HC_Banner10808/HC_Banner10808.css");
    @import url("../DeptLayout.css");
    </style>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Haltom City Texas Trash-Off</title>
    <style type="text/css" media="screen">
    @import url("../Banner Files/HC_Banner10808/HC_Banner10808.css");
    @import url("../DeptLayout.css");
    </style>
    </body>
    </html>
    The code listed first is before in did the CSS STYLE import, the code after is after i imported  the CSS STYLE files. The page displays the proper styles when uploaded and viewed in a browser, it's just that the DW design view doesn't display it in DW until i re-attach teh CSS files.

  • CSS styles disappear in new template-based pages

    hello: having some trouble. i've created a template for a new website and everything looks ok, but when i attempt to create a new page based on the template, all the css styles i've created disappear. i have a hunch it has something to do with the "body" stlye overriding everything else.
    any suggestions are much appreciated.

    The first suggestion I would have is to make sure the css that is being linked is not in an editable region on the template.  Next, make sure the paths are correct.  If both are in order you may need to post the template code.

Maybe you are looking for

  • OIM 11g error while running the scheduler

    Hi All, we have created on few custom schedulers to carry out trustetd recon and doing the create , modify and delete operations on OIM entities. all were running fine earlier. Now we started facing the below error while running any scheduler. Please

  • InDesign CS5.5 keeps crashing when I open a particular document

    InDesign CS5.5 keeps crashing when I open a particular document. This suddenly started happening a few hours ago, and other files are unaffected. I downloaded a backup from last week and that was fine, but I need to get this latest version working ag

  • Validation not Working in WBS Element

    Dear Team, I have created a Validation at WBS element level like this:- Prerequisite PROJ-PROFL = 'ZPSSNR' Check PRPS-POSID : 1-6 := PROJ-PSPID : 1-6: Error: WBS ID doesn't start with Project ID My Project ID "SN-001" Now when I tried create 1st Leve

  • Pay roll area and control period

    hai experts we have pay roll area ,control period in personal administration and we have the same options in pay roll so can any body help me out in which option we have to choose thanks thjea points will ne rewarded

  • Im having trouble installing Ruby on my Mavericks

    lakshmis-MacBook-Pro:~ lakshmishanthappa$ rvm install 2.0.0 Searching for binary rubies, this might take some time. Found remote file https://rubies.travis-ci.org/osx/10.9/x86_64/ruby-2.0.0-p481.tar.bz2 Checking requirements for osx. /usr/local/bin/b