JEditorPane, CSS, HTML problem

Hi,
I am using setEditorKit(new HTMLEditorKit()) with a JEditorPane to render / display a HTML file. The HTML has a stylesheet with it.
The HTML file has a table in it. When I try to use the CSS values of
TABLE.black-border { border-width:1px;
                     border-color:black;
                     border-collapse: collapse;
tr.bb-test { border-width:1px;
             border-color:black;
             border-style:solid;
             border-collapse: collapse;
td.bb-medium { border-collapse: collapse;
               border-width:1px;
               border-color:black;
<TABLE class=black-border WIDTH=100%>
<TR>
<TD class=bb-medium WIDTH=10%>TEST</TD>
<TD class=bb-medium WIDTH=25%>TEST Number</TD>
<TD class=bb-medium WIDTH=55%>POLICY Range</TD>
<TD class=bb-medium WIDTH=10%>DEST DATE</TD>
</TR>
<TR class=bb-test>
<TD class=bb-medium COLSPAN=4>item 1</TD>
</TR>
<TR class=bb-test>
<TD class=bb-medium COLSPAN=4>item 2</TD>
</TR>
</TABLE>No matter what I set the border-width to (1, 10, 100), it always comes out as a thick border (same size). But in a web browser, 1, 10 or 100px border looks correct.
When I try to set the individual borders (i.e. border-top-width ), the JEditorPane shows no border at all (as if it is invalid keyword).
Does anybody know what the problem is? Any help would be appreciated.
Thanks
Roger...

Better use JTextPane ,where it supports CSS to some extends.
(I have used in my case for rendering font size and font face).Try to
use external stylesheet instead of internal ones. Here I paste some part of the code.
          kit = new HTMLEditorKit();//kit s ur HTMLEditorKit
          doc = (HTMLDocument) (kit.createDefaultDocument());
          this.setEditorKit(kit);//'this' is ur JTextPane object
          this.setDocument(doc);
          this.setContentType("text/html");
          css = kit.getStyleSheet();//css s the StyleSheet object
          css.addRule("body {align : left }");//replace this part by ur CSS attributes for Table rendering
          css.addRule("body {font-size : 14pt; }");
          css.addRule("body {font-family : Sans Serif; }");
          css.addRule("div {margin-top: -20pt; }");
          css.addRule("div {margin-bottom: -20pt; }");Let me know weather this works out.

Similar Messages

  • JEditorPane with html problem

    HI
    I have a JEditorPane with html, but this looks center, I mean that the text and images of the html look center in the JEditorPane. What can I do?

    No, I don't want center text in the JEditorPane, in this moment I did a html with justify alignment, on the browser the html looks ok, but in the JEditorPane looks center, the text and images looks center in the JEditorPane, How do I do to that the html looks as on the browser.
    Thanks for your help

  • CSS Float Problem

    Hi All, 10 years since I've been on here (in the days of tables) I have, I'm sure a very basic css float problem in the footer and hopefully someone could take the time to review it for me.  I have checked everything but can't find the problem.  Thanks in advance;
    example of problem here  http://davidbrown.ipower.com/template/template.htm
    <!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>Our Jewelry Retail Secrets - Thank You</title>
    <link href="../stylesheet/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .H1_black {color: #000000}
    p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 25px;
    font-weight: normal;
    color: #000000;
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    .headlinetxt_colour {color: #FF6600}
    .style1 {color: #ff6600}
    -->
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="wrapperfix">
        <div id="toporange_bg">login</div>
      </div>
       <div id="wrapperfix_top_grey">
        <div id="top_grey_content_wrapper">
          <div id="big_logo"></div>
          <div id="welcome_user">Welcome "username here"</div>
        </div>
      </div>
      </div>
        <div id="main_content">
          <p>
            <!--main body content goes here -->
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel felis velit. Proin a nisl diam, id hendrerit lectus. Nunc eget tortor arcu. Mauris fringilla felis eget mi facilisis vel auctor est lacinia. Sed sit amet dui nibh, in varius metus. Duis malesuada euismod tortor eget lacinia. Donec pretium rutrum nunc, sagittis condimentum elit aliquam in. In eu mauris dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
          <p> Nam vel felis velit. Proin a nisl diam, id hendrerit lectus. Nunc eget tortor arcu. Mauris fringilla felis eget mi facilisis vel auctor est lacinia. Sed sit amet dui nibh, in varius metus. Duis malesuada euismod tortor eget lacinia. Donec pretium rutrum nunc, sagittis condimentum elit aliquam in. In eu mauris dui. </p>
      </div>
        <div id="footer_container">
          <div id="footer">
            <div id="footer_left">Footer Left</div>
            <div id="footer_centre">Footer Centre</div>
          <div id="footer_right">Footer Right</div></div>
        </div>
    </body>
    </html>
    #footer_container {
    background-color: #333333;
    width: 100%;
    top: 0px;
    margin: 0px;
    padding: 0px;
    #footer {
    background-color: #666666;
    min-width: 1000px;
    margin-right: auto;
    margin-left: auto;
    padding: 0px;
    width: 1000px;
    height: 150px;
    overflow: hidden;
    clear: both;
    margin-top: 0px;
    margin-bottom: 0px;
    position: relative;
    #footer_left {
    float: left;
    width: 33%;
    margin: 0px;
    padding: 0px;
    height: 150px;
    #footer_centre {
    width: 33%;
    height: 150px;
    margin: 0px;
    padding: 0px;
    float: left;
    #footer_right {
    float: left;
    width: 33%;
    height: 150px;
    margin: 0px;
    padding: 0px;

    I still don't see the #footer_left rule in the CSS in the online example at
    http://davidbrown.ipower.com/template/template.htm

  • JEditorPane and HTML

    I have this html file on my C drive and I want to display it in a JEditorPane. THe problem is that I always get this malformed URL exception. I've done this before, but right now I can't seem to figure out whats happening. Any help as to the syntax and how I can go about doing this. Thanks

    It would help if you can post the URL you're using.

  • Code Photo Edges in CSS & HTML?

    Can someone give me an idea of how I can code the navigation bar shown in the image below? I'm specifically having trouble figuring out how to implement the tiny edges of the navigation bar into CSS & HTML code.

    a very thin border on the yellow container will do the rectangle, but IMHO, you will need  2 small graphics to acheive the "folded" ends.
    Or do it as a single graphic backbround banner.

  • Send html problems

    Hello,
    I need help with my problem, this is part of my procedure that will send mail
    c := utl_smtp.open_connection(server);
    utl_smtp.helo(c, domena);
    utl_smtp.mail(c, posilja);
    utl_smtp.rcpt(c, prejemnik);
    utl_smtp.open_data(c);
    send_header('From', '<' || posilja || '>');
    send_header('To', '<' || prejemnik || '>');
    IF posljicc is not null THEN
         send_header('Cc', '<' || posljicc || '>');
         poslji_mail(posljicc, null, zadeva, posta);
    END IF;
    send_header('Subject', zadeva);
    send_header('MIME-Version', '1.0' || utl_tcp.CRLF);
    send_header('Content-Type', 'text/html' || utl_tcp.CRLF); <----- PROBLEM
    utl_smtp.write_data(c, utl_tcp.CRLF || posta);
    utl_smtp.close_data(c);
    utl_smtp.quit(c);...
    and it works fine but when I want to send HTML mail I see mail in code not as html like this:
    Content-Type: text/html <------- this should be in header
    <HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=windows-1250"></HEAD><BODY><table><tr><td>1</td><td>2</td></tr><tr><td>1</td></tr><tr><td>1</td><td>2</td><td>3</td></tr></table></body></html>
    Problem is that I see mail as text and I also see this in text body "Content-Type: text/html", but this should be in header.
    Can anyone help me with my problem, what must I do to get the html mail (not as text)?
    Thanks for your help

    Thanks I have solved the problem

  • JEditorPane with HTML and css

    Hi
    I am trying to display a html file with css (css file is external) in jeditorpane. I managed to display html but css effect is lost. Can anyone help please?

    I do not believe there is currently an html renderer in java that can handle style sheets. Your best bet if you need this is to try to contact a professional java web browser producer like ICESoft

  • JEditorPane - HTML Problem

    Hello people:
    I am new to your forum and have this problem: I am using a JEditorPane component in my GUI and wish to fornat it using text/html. This I have done. I also want to dynamically add content to it from functions in my program, but this is not possible as, when the first content is added to the Pane, it is terminated with a </html> tag. Is there a way that I can specify it not to do this so that I can dynamically add my HTML content throught the life of my program.
    Regards and thanks in advance,
    mintsmike

    camickr wrote:
    Cross postedThanks for the heads-up.
    db

  • Outlook HTML and CSS Validator Problem

    Hi,
    I downloaded this
    Outlook
    HTML and CSS Validator for DreamWeaver 8
    (WordMailSupportMacromedia.msi) but when I
    followed
    the instructions and went to the Browser Check settings,
    "Microsoft Word" did not show up in the Target Browsers list.
    Anyone know why or have a fix?
    Thanks much!

    FederalWayDave wrote:
    > Hi,
    >
    > I downloaded this
    >
    http://www.microsoft.com/downloads/details.aspx?familyid=0b764c08-0f86-431e-8bd5
    > -ef0e9ce26a3a&displaylang=en for DreamWeaver 8
    (WordMailSupportMacromedia.msi)
    > but when I
    >
    http://msdn2.microsoft.com/en-us/library/aa338200.aspx#Word2007MailHTMLandCSS2_D
    > reamweaver]followed the instructions and went to the
    Browser Check settings,
    > "Microsoft Word" did not show up in the Target Browsers
    list.
    >
    > Anyone know why or have a fix?
    >
    > Thanks much!
    >
    you can open your html pages FROM Microsoft Word.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Problems CSS/HTML

    Could you please tell me what to do.
    - I don't know how to remove the blue rectangles in the header.
    - there should be a white box for the other secondary info
    - I want a footer with the copyright in it
    - I also want a bit more space around the text in the primary content's box.
    Here's the URL:   http://lave0134.site44.com/dsn1568/Untitled-5.html
    thank you

    Footer: Change this:
    <footer class="bottom">
      <footer>
        <p>©Company name. All right eserved</p>
      </footer>
    </footer>
    to this:
    <div style="clear:both;"></div>
    <footer class="bottom">
        <p>©Company name. All right eserved</p>
      </footer>
    This will bring the footer to the bottom by clearing its floats.
    For header, I don't see the blue boxes. Do you mean an array of checkered looking gray lines?
    For secondary info, when the footer code is changed, the 'gray' background behind secondary info will be gone and you'll see only white.
    For more spacing for primary content, change this:
    <div class="left">
      <article>
      <h2>Primary Content</h2>
    to this:
    <div class="left">
      <article id="primarycontent">
      <h2>Primary Content</h2>
    And in your CSS file, add this:
    #primarycontent{
    padding: 10px;

  • Centre not working in Dreamweaver Design View (CSS+HTML)- Preview OK- help!

    Hi there
    I am having a slight problem with DW which I have had before, and fixed, but I cant for the life of me remember how I fixed it.  So any help is much appreciated.
    I am producing a proof site for a client and cannot load it to be live just yet so sorry for any inconvience but I have taken some screen shots and will paste code/html.
    The site is currently sitting like this  in the design view of DW
    [IMG]http://i1200.photobucket.com/albums/bb323/SKH_Design/Picture1-1.jpg[/IMG]
    Which it usually doesnt.... its usually centred within the design view!!
    this is how it sits in the preview
    [IMG]http://i1200.photobucket.com/albums/bb323/SKH_Design/Picture2.png[/IMG]
    My main page container is margin left auto and so is the margin right.
    (please excuse my experiment with the drop shadow behind the main container)
    please excuse me if anything is messy, im pretty new to this!!
    Thanks, Sarah
    Code -
    <style type="text/css">
        <!--
        @import url("styles/base.css");
    body {
        background-image: url(images/backgroundred.jpg);
        background-repeat: no-repeat;
        -->
    </style>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    </head>
    <body leftmargin="float">
    <div class="shadow">
    <div class="pagecontainer">   
                <!-- navigationbarstart -->
                <div class="topbarcontainer"><img src="images/pb-topbanner.jpg" width="800" height="126"></div>
                        <div class="navigationbar"> <img src="images/pb-linkbar1.jpg" width="353" height="34"><img src="images/pb-linkbar2home.jpg" width="87" height="34"><img src="images/pb-linkbar3products.jpg" width="198" height="34"><img src="images/pb-linkbar4offers.jpg" width="161"                                                                                                                                                                                                 height="34"></div>
                                <!--navigationbarend-->
                                <!--flashanimation-->
                                <div class="flashcontainer">
                                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="257" id="FlashID" title="paulburtonflash">
                                    <param name="movie" value="flashfiles/paulburtonflash.swf" />
                                    <param name="quality" value="high" />
                                    <param name="wmode" value="opaque" />
                                    <param name="swfversion" value="6.0.65.0" />
                                   <param name="expressinstall" value="Scripts/expressInstall.swf" />
                                    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                                    <!--[if !IE]>-->
                                    <object type="application/x-shockwave-flash" data="flashfiles/paulburtonflash.swf" width="800" height="257">
                                  <!--<![endif]-->
                                  <param name="quality" value="high" />
                                  <param name="wmode" value="opaque" />
                                  <param name="swfversion" value="6.0.65.0" />
                                  <param name="expressinstall" value="Scripts/expressInstall.swf" />
                                  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                                  <div>
                                    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                                    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                                </div>
                                  <!--[if !IE]>-->
                                </object>
                                    <!--<![endif]-->
                                  </object>
                                </div>
                                <!--flashanimationend-->
                       <!--mainbackground-->
                       <div class="mainbackground">
                       <!--maintext-->
                        <div class="homepagetext">
                        Established in 1980, we are a drinks wholesale business, based in the Scottish Borders which prides itself on being able to provide alcoholic and soft drinks in whatever quantity you require at outstanding prices and on time.<br><br>
    We deliver 7 days a week and offer a free, prompt delivery service, by our own staff in the Borders, East Lothian and Midlothian.<br><br>
    <div class="textspacer1"></div>
    <div class="textsixe16">We have regular promotions - click here to view our latest special offers</div>
                        </div>
                        <!--endofmaintext-->
                        <div class="homepageimage">
                        <img src="images/pb-home-mainimage.jpg" width="328" height="219"></div>
                        </div><!--endofmainbackground-->
          <div class="bottombar">
                  <div class="bottombartext">
                    Paul Burton Drinks Wholesale, Pinnaclehill Industrial Estate, Kelso, Scottish Borders, TD5 8DW
                </div>
          </div>
    </div>       
    </div>
    </body>
    </html>
    CSS -
    @charset "UTF-8";
    /* CSS Document */
    .shadow{
    width:840px;
    margin-left:auto;
    margin-right:auto;
    background-image:url(../images/editableshadow.png);
    background-repeat:repeat-y;
    .pagecontainer{
        width:800px;
        height:auto;
        margin-right:auto;
        margin-left:auto;
    .topbarcontainer{
        width:800px;
        height:126px;
    .navigationbar{
        width:800px;
        height:34px;
        float:left;
    .flashcontainer{
        width:800px;
        height:257px;
        float:left;
    .mainbackground{
        width:800px;
        height:349px;
        float:left;
        background-image:url(../../CL%20-%20New%20Ideas/Images/pb-home-background.jpg);
        background-repeat:no-repeat;
    .homepagetext{
        width:372px;
        height:275px;
        float:left;
        margin:50px 0px 0px 50px;
        font-family:Arial, Helvetica, sans-serif;
        font-size:14px;
        color:#FFF;
    .textsixe16{
        font-size:16px;
        font-weight:bold;
    .textspacer1{
        height:15px;
        width:5px;
        color:#d6f3fc;
    .homepageimage{
        width:328px;
        height:219px;
        float:left;
        padding:50px 0px 0px 20px;
    .bottombar{
        width:800px;
        height:59px;
        float:left;
        background-image:url(../../CL%20-%20New%20Ideas/Images/pb-home-bottombar.jpg);
        background-repeat:no-repeat;
    .bottombartext{
        width:600px;
        height:17px;
        float:left;
        font-size:12px;
        font-family:Arial, Helvetica, sans-serif;
        color:#000;
        padding:25px 0px 0px 50px;

    "<body leftmargin="float">"
    Can you say what that's doing? "float" is not a legal value for the leftmargin style, which requires an integer value.  But its use is deprecated in favor of CSS anyhow.
    Your pasted code is lacking a doctype or anything that would normally be above that stylesheet link.  Is that just an oversight or is it really not there?

  • CSS Layout problems

    I should start this by saying I am very new to CSS layouts,
    and am self taught, so I'm probably doing something very wrong. So
    far I've stuck to really simple layouts and had no problems...but
    they were very simple layouts.
    With the site I'm doing at the moment I have placed other
    div's inside a content div, so that I can have left and right hand
    content within the content div. But the left and right div's are
    not pushing the content div down with their content, and I'm not
    sure what else to try to get it to work.
    I've tried setting the height of the content div to auto or
    inherit but that doesn't work.
    As you can see on the main page of the site I'm using a
    background image in the content cell.
    http://members.westnet.com.au/zelky/surfschoolnew/index.html
    And if you look at the details page you can see what I am
    trying to describe. The content div not pushing down with the left
    and right content div’s contents means the background image
    is just a few pixels deep under the nav div.
    http://members.westnet.com.au/zelky/surfschoolnew/details.html
    And my pathetic CSS/stylesheet is here:
    http://members.westnet.com.au/zelky/surfschoolnew/mainstyle.css
    Thanks in advance and hopefully my mess isn’t’ to
    hard to look at. As I said I'm a bit lost so hopefully I'm not
    going to confuse anyone with my "home made" skills.

    When you 'float' elements on your page you effectively remove
    them from
    the normal flow of the document, therfore the 'content'
    <div> thinks
    nothing is inside it. You need to help it by 'clearing' the
    floats.
    There are various methods for clearing floats.
    Insert a 'clearing' <br> (shown below) into your pages
    code directly
    AFTER the closing 'right' container tag and BEFORE the
    closing 'content'
    container tag.
    </div><!-- end 'right' -->
    <br style="clear: both;" />
    </div><!-- end 'content' -->
    zelky wrote:
    > I should start this by saying I am very new to CSS
    layouts, and am self taught,
    > so I'm probably doing something very wrong. So far I've
    stuck to really simple
    > layouts and had no problems...but they were very simple
    layouts.
    >
    > With the site I'm doing at the moment I have placed
    other div's inside a
    > content div, so that I can have left and right hand
    content within the content
    > div. But the left and right div's are not pushing the
    content div down with
    > their content, and I'm not sure what else to try to get
    it to work.
    >
    > I've tried setting the height of the content div to auto
    or inherit but that
    > doesn't work.
    >
    > As you can see on the main page of the site I'm using a
    background image in
    > the content cell.
    >
    >
    http://members.westnet.com.au/zelky/surfschoolnew/index.html
    >
    > And if you look at the details page you can see what I
    am trying to describe.
    > The content div not pushing down with the left and right
    content div?s contents
    > means the background image is just a few pixels deep
    under the nav div.
    >
    >
    http://members.westnet.com.au/zelky/surfschoolnew/details.html
    >
    > And my pathetic CSS/stylesheet is here:
    >
    >
    http://members.westnet.com.au/zelky/surfschoolnew/mainstyle.css
    >
    > Thanks in advance and hopefully my mess isn?t? to hard
    to look at. As I said
    > I'm a bit lost so hopefully I'm not going to confuse
    anyone with my "home made"
    > skills.
    >
    >

  • CSS layout problems in Explorer (fine in Firefox and Safari)

    Firstly apologies to the mods, I had mistakenly posted this
    in the dynamic section also...
    My problem - I am working on a CSS site (my first!) here
    http://www.benfrain.com
    It appears fine in Firefox (PC and Mac) and Safari (mac) but
    when I view it in Explorer for Mac (5.2.3) I get a over long page
    and I get no auto margin on the left.
    Another small curiosity - I have noticed that my background
    image on my div id "header" seems to start off again on the right.
    Again, Explorer 5.2 for mac only...
    My html and css both validate.
    Anybody know why this is happening?

    quote:
    Originally posted by:
    bregent
    >It appears fine in Firefox (PC and Mac)
    Have you tried increasing the text size?
    Do you mean in the browser? I just tried it in Firefox and
    after two increases the layout/style of the page kind of 'falls
    apart' - how would this be rectified?

  • CSS Float Problems

    I'm just becoming comfortable with using CSS. At least, I
    thought I was. I put together a test page and it worked on IE 7.
    Then, I downloaded Firefox and Safari to check compatability on
    other browsers.
    I have a centered page with a top navigation bar, content
    area, and a footer (bottomNavBar). Inside the content area I have
    two sections, a left section and a right section. In the left there
    should be text, some sort of welcome text. In the right some sort
    of Flash intro video the user can play when they choose.
    The problem: I got the float to work in IE 7 (Sometimes it
    wouldn't. It seems tempermental.). However, the floats won't work
    on the other 2 browsers. In the other 2 it puts the first div
    listed above the second instead of side by side like in IE 7.
    Here is the code:

    To make your contentIndexFlashIntro & contentIndexWelcome
    divs sit
    side-by-side you have to assign each a width. The combined
    total of those
    widths must be <=800px.
    Walt
    "JasonTheAdobeFan" <[email protected]> wrote
    in message
    news:[email protected]...
    > I'm just becoming comfortable with using CSS. At least,
    I thought I was. I
    > put
    > together a test page and it worked on IE 7. Then, I
    downloaded Firefox and
    > Safari to check compatability on other browsers.
    >
    > I have a centered page with a top navigation bar,
    content area, and a
    > footer
    > (bottomNavBar). Inside the content area I have two
    sections, a left
    > section and
    > a right section. In the left there should be text, some
    sort of welcome
    > text.
    > In the right some sort of Flash intro video the user can
    play when they
    > choose.
    >
    > The problem: I got the float to work in IE 7 (Sometimes
    it wouldn't. It
    > seems
    > tempermental.). However, the floats won't work on the
    other 2 browsers. In
    > the
    > other 2 it puts the first div listed above the second
    instead of side by
    > side
    > like in IE 7.
    >
    > Here is the code:
    >
    >
    > ***First is the HTML***
    >
    > <body>
    > <div class="header">
    > <img src="Logo001.png" />
    > </div>
    > <div class="container">
    > <div class="topNavBar">
    > <ul class="topNavBarUL">
    > <li class="topNavBarLI"><a
    class="topNavBarLinksCurrent"
    > href="index.htm">Home</a></li>
    > <li class="topNavBarLI"><a
    class="topNavBarLinks"
    > href="page2.htm">Link2</a></li>
    > <li class="topNavBarLI"><a
    class="topNavBarLinks"
    > href="page3.htm">Link3</a></li>
    > <li class="topNavBarLI"><a
    class="topNavBarLinks"
    > href="page4.htm">Link4</a></li>
    > </ul>
    > </div>
    > <div class="content">
    > <div class="contentIndexFlashIntro">
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','350','height','350','title','IntroVideo','src','Intro
    > Video002','quality','high','pluginspage','
    http://www.adobe.com/shockwave/downloa
    >
    d/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','IntroVideo002'
    > //end
    > AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="350" height="350"
    title="IntroVideo">
    > <param name="movie" value="IntroVideo002.swf" />
    > <param name="quality" value="high" />
    > <embed src="IntroVideo002.swf" quality="high"
    > pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
    > n=ShockwaveFlash" type="application/x-shockwave-flash"
    width="350"
    > height="350"></embed>
    > </object></noscript>
    > </div>
    > <div class="contentIndexWelcome">
    >
    <!--<center><h2>Welcome</h2></center>
    > <hr/>-->
    > <p class="smallText">Paragraph 1</p>
    > <p class="smallText">Paragraph 2</p>
    > <hr/>
    > <ul><u class="smallText">Unordered
    List</u>
    > <li><span class="smallText">Item
    1</span></li>
    > <li><span class="smallText">Item
    2</span></li>
    > <li><span class="smallText">Item
    3</span></li>
    > <li><span class="smallText">Item
    4</span></li>
    > <li><span class="smallText">Item
    5</span></li>
    > <li><span class="smallText">Item
    6</span></li>
    > </ul>
    > <hr/>
    > <p class="smallText">Concluding
    Paragraph</p><br />
    > </div>
    > </div>
    > <div class="bottomNavBar">
    > <p>&copy; Copyright 2008</p>
    > </div>
    > </div>
    > </body>
    >
    > *********************************
    > ***Next is the external CSS.***
    >
    > body {
    > font-family: Arial, Helvetica, sans-serif;
    > background-color: #999999;
    > margin: 0px;
    > }
    >
    > .header {
    > background-color: #FFFFFF;
    > width: 100%;
    > margin: 0px;
    > padding: 0px 0px 0px 0px;
    > top: 0px;
    > }
    >
    > .container {
    > background-color: #FFFFFF;
    > width: 800px;
    > margin-left: auto;
    > margin-right: auto;
    > margin-bottom: 0px;
    > margin-top: 0px;
    > }
    >
    > /* top navigation bar class
    > ** I prefer to have a nav bar to the top rather than the
    left
    > */
    > .topNavBar {
    > width: 800px;
    > height: 22px;
    > background-color: #0080EE;
    > border: 0px solid #FFFFFF; /* I turned off the pixel
    width because I
    > didn't
    > ** want a border right now. But I left the rest in case
    > ** I wanted to change it back to 1px.
    > */
    > }
    >
    > /* topNavBar link properties
    > ** The idea is to have each link highlight when cursor
    comes over any part
    > ** of the section, not just the words. Then goes back to
    normal when
    > cursor
    > ** leaves. The current page should have its own link
    highlighted always.
    > */
    > ul.topNavBarUL {
    > height: 17px;
    > float: left;
    > width: 100%;
    > padding: 0;
    > margin: 0;
    > list-style-type: none;
    > }
    >
    > li.topNavBarLI {
    > display: inline;
    > }
    >
    > a.topNavBarLinks:link, a.topNavBarLinks:active,
    a.topNavBarLinks:visited {
    > float: left;
    > text-decoration: none;
    > color: #FFFFFF;
    > background-color: #0080EE;
    > padding: 0.15em 0.6em;
    > border-right: 1px solid #FFFFFF;
    > }
    >
    > a.topNavBarLinks:hover {
    > color: #FFFFFF;
    > background-color: #FF9900;
    > text-decoration: none;
    > }
    >
    > a.topNavBarLinksCurrent, a.topNavBarLinksCurrent:active,
    > a.topNavBarLinksCurrent:visited,
    a.topNavBarLinksCurrent:hover {
    > float: left;
    > text-decoration: none;
    > color: #FFFFFF;
    > background-color: #00FF33;
    > padding: 0.15em 0.6em;
    > border-right: 1px solid #FFFFFF;
    > }
    >
    > /* content class
    > ** This is the part of the page that the content will go
    in.
    > ** It should have the full width of the container class
    and
    > ** stretch in height based on the content with a minimum
    > ** height of 500px.
    > */
    > .content {
    > width: 800px;
    > min-height: 400px;
    > background-color: #FFFFFF;
    > font-family: Arial, Helvetica, sans-serif;
    > color: #000000;
    > }
    >
    > /* content links
    > ** The links in the content area will just be the
    regular links.
    > ** Navigation links will all be given special classes to
    define them.
    > */
    > a:link, a:active, a:visited {
    > color: #0080EE;
    > text-decoration: none;
    > }
    >
    > a:hover {
    > color: #FF9900;
    > text-decoration: underline;
    > }
    >
    > /* content headings, hr
    > */
    > h1, h2, h3, h4, h5, h6 {
    > font-family: Arial, Helvetica, sans-serif;
    > color: #00FF33;
    > margin-bottom: 2px;
    > }
    >
    > hr {
    > color: #0080EE;
    > }
    >
    > p {
    > text-indent: 20px;
    > margin-top: 4px;
    > }
    >
    > ul {
    > margin-top: 4px;
    > }
    >
    > li {
    > list-style: square;
    > color: #00FF33;
    > }
    >
    > .contentIndexFlashIntro {
    > padding-top: 2px;
    > padding-right: 2px;
    > float: right;
    > }
    >
    > .contentIndexWelcome {
    > float: left;
    > text-align: justify;
    > padding-top: 4px;
    > padding-right: 10px;
    > padding-bottom: 4px;
    > padding-left: 4px;
    > }
    >

  • Css template problems

    I am working on re-doing pages on a site so the content is centered and fixed width using css. Previously used tables. I am having some problems with the display. The background for the left menu does not show except behind the menu. The container that holds the menu doesn't seem to go all the way to the bottom and thus is shifting the other containers at the bottom to the left. The main container does not seem to extend to the bottom either you can see where the background color stops. I have set the html/body to min 100%. Also in IE for windows, there is no margin between the slideshow and the left menu, Firefox there is a margin. You can view the page at http://www.cheyennecampingcenter.com/templatetest2.html .
    I hope this makes some sense? I was up all night and I am on my way out now, just don't have much time to explain further right now. I am learning CSS, but obviously I have more to learn. Any help would be much appreciated!
    Thanks,
    Steve

    Okay, I'm still having trouble with the two background images, the bar on the left and the bar at top. In have remade the template and it displays fine when I create a page as shown here http://www.cheyennecampingcenter.com/template_test_FINAL1.html . When I reapply the template, the quote marks in the css definition of the "container" and "top_bar" are gone as well as the backgrounds as shown here http://www.cheyennecampingcenter.com/template_test_FINAL.html . The quote marks are still there in the template, but are lost when I reapply the template? Here is a sample of the css:
    #top_bar { background-image: url('images new/header_bkgnd.jpg'); margin-right: auto; margin-left: 110px; width: 815px; height: 100px; }
    #top_bar { background-image: url(images new/header_bkgnd.jpg); margin-right: auto; margin-left: 110px; width: 815px; height: 100px; }
    I have tried a few things, but it only seems to happen in the "headlocked" part of the code. One other strange thing, if I take the html file that does not have the backgrounds and duplicate it in the site window, the quote marks and backgrounds come back. If I reapply the template to the duplicated file, they disappear again? Any Ideas?
    Thanks again!

Maybe you are looking for

  • HP DeskJet 2510 Printer Driver conflict in Windows 7 64bit

    I have just changed my PC from Windows XP Home to a new machine running Windows 7 64bit. I installed the DeskJet 2510 printer from the CD/online and it was fine apart from a lot of errors in the Event Viewer:- "The print spooler failed to load a plug

  • When should a servlet be called?

    Hi all, i have three JSP pages.when should a Servlet be called.what is the interaction between jsp,servlet and data base.please help me with the process flow.its urgent.help me out.thanks in advance.

  • Calendar Invite Attendee

    Hello! I just replaced my Pearl with an 8900 Curve, but am having problems sending and receiving calendar invites as they are either not arriving at all or arrive just as text messages. This never used to happen on my Pearl a few days ago. Does anyon

  • IDOC -- File (Multi-Mapping )

    Hi Guys, iam working on an IDOC --> File scenario. I had used a multimapping to split the source file into three target files and for creating those three files i had used three differemt Inbound MI and Three different Comm Channels. The file is gett

  • Function return type could be sequence?

    I tried to write a function return a sequence, but netbeans don't allow it. is it possible? if not, how can I solve it?