The Dreamweaver code is visible on the design page but does not appear in the live view on the browser

Experimenting with something and created the top section of the site (Logo and menu). However, when I tried to add a table with text, it doesn't appear in the browser preview even though I can see it in the CODE and DESIGN tabs of Dreamweaver.

I suspect there is an issue with my CSS causing the table not to show up, but I can't pinpoint the exact problem since I'm not a CSS pro; just playing around with website building.

Here's the HTML snippet:

<body>

<!-- header -->
<table id="tabela">
  <tr>
    <td>
        <!-- Logo -->
        <div class="logo">
            <img src="imagens/logo.png">
        </div>

        <!-- Menu -->
        <div id="menu">
            <ul> 
                <li><a href="#">home</a></li>
                <li><a href="#">categorias</a>
                    <ul class="categorias">
                        <li><a href="#">papel de carta</a></li>
                        <li><a href="#">envelopes</a></li>
                        <li><a href="#">cartoes de visita</a></li>
                        <li><a href="#">flyers</a></li>
                        <li><a href="#">tshirts</a></li>
                        <li><a href="#">brindes</a></li>
                    </ul>
                </li>
                <li><a href="#">Portefólio</a></li>
                <li><a href="#">faqs</a></li>
                <li><a href="#">contatos</a></li>
            </ul>
        </div>
    </td>
  </tr>
</table>

<!-- Clear -->
<div class="clear"></div>

<!-- Top Text -->
<table width="100%" border="0">
  <tr>
    <td>imprimimos <span class="salmon-color"><b>QUALIDADE</b></span></td>
  </tr>
  <tr>
    <td>junte-se a nós...</td>
  </tr>
</table>

<!-- Top Image -->

<div class="imagem1">
    <p><img src="imagens/imagem1.jpg" width="1680" height="656" /></p>
</div>

</body>

And here's the corresponding CSS:

/* Reset */ 
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, img, small, strong, ol, ul, li, form, label,
table, caption, tr, td, footer, header {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    line-height: 1;
    text-rendering: optimizeLegibility;
    font-weight: 200;
    font-family: "Prosto One";
    text-transform: uppercase;
}

a {
    color: #666;
    text-decoration: none;
}
a:focus { color:#333; outline:0; text-decoration:none; }
a:hover { color:#FF6666; text-decoration:none; }
.salmon-color {color:#C69}
.clear { clear:both; }

.header { 
    height:80px; 
    display:block; 
    background:url('imagens/menu-bg.png') repeat; 
}

#tabela {
    position:fixed;
    z-index: 998;
    width:100%;
    height:150px;
    border:0;
    background:url(../imagens/menu-bg.png);
}

.logo {
    position: fixed;
    z-index: 999;   
    height: 100px;
    left: 400px;
    top: 20px;
}

#menu{
    position: fixed;
    z-index: 999;
    right: 300px;
    top: 30px;
    display: block;
    text-align: center;
}

#menu li {
    float: left;
    position: relative;
    padding-right: 100;
    display: block;
    margin-right: 30px;
    padding: 5px;
    letter-spacing:1px
}

#menu li ul {
    display:none;
    position:absolute;
    padding-top:10px;
    text-align: center;
    letter-spacing:0px
}

#menu li:hover ul{
    display:block;
    height:2px;
    width:18em;
    text-align: center;
}

#menu li ul li{
    clear:both;
    border-style:none;
    padding-top:10px;
    text-align: center;
    background-color: #FFF;
}

.categorias{
    font-size: 12px;
    text-align: center; 
}

.span1{
    display: block;

}

.imagem1 {
    position: absolute;
    top: 200px;
    z-index: -999;
}

Appreciate any assistance provided. Thank you!

Answer №1

Your issue is not very clear, but your code appears to be working fine as demonstrated here. However, using tables for layout is not recommended. You might want to explore table-less layouts for better design practices.

I tested your code and you can view the results here. As I didn't have your background image, I used a placeholder color instead.

<body>

<!-- header -->
<table id="tabela">
  <tr>
    <td>
        <!-- Logo -->
        <div class="logo">
            <img src="imagens/logo.png">
        </div>

        <!-- Menu -->
        <div id="menu">
                <ul> 
                    <li><a href="#">home</a></li>
                    <li><a href="#">categorias</a>
                        <ul class="categorias">
                            <li><a href="#">papel de carta</a></li>
                            <li><a href="#">envelopes</a></li>
                            <li><a href="#">cartoes de visita</a></li>
                            <li><a href="#">flyers</a></li>
                            <li><a href="#">tshirts</a></li>
                            <li><a href="#">brindes</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Portefólio</a></li>
                    <li><a href="#">faqs</a></li>
                    <li><a href="#">contatos</a></li>
                </ul>
        </div>
      </td>
  </tr>
</table>

<!-- Clear -->
<div class="clear"></div>

<!-- Top Text -->

<table width="100%" border="0">
  <tr>
    <td>we print with <span class="salmon-color"><b>QUALITY</b></span></td>
  </tr>
  <tr>
    <td>join us...</td>
  </tr>
</table>

<!-- Top Image -->

<div class="image1">
    <p><img src="images/image1.jpg" width="1680" height="656" /></p>
</div>

</body>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Creating a bold portion of a string

My task involves dynamically creating <p> elements within a div based on the contents of my codeArray, which can vary in size each time. Instead of hard-coding these elements, I have devised the following method: for(i=1;i<codeArray.length;i++) ...

Is it common for functions to be outlined in standard CSS practices?

I am curious if the CSS standard includes definitions for "functions"; I have not come across any information about them on w3schools or other sources. When I refer to "functions," I am talking about calls such as rgb(int, int, int) or url(string) that ar ...

How to Animate the Deletion of an Angular Component in Motion?

This stackblitz demonstration showcases an animation where clicking on Create success causes the components view to smoothly transition from opacity 0 to opacity 1 over a duration of 5 seconds. If we clear the container using this.container.clear(), the r ...

Having trouble getting the vertical menu animation to work with jQuery

Essentially, I am facing an issue with a <nav> element that is supposed to expand from left to right upon mouseover. However, sometimes when quickly moving the cursor over and then out of the element, it expands without animation, which should not be ...

The jquery click event is not working as expected

Hey there, I've been working on creating a dropdown menu that can be activated by clicking for better usability on touch screens. $('a.dropsmall2').click(function() { $(this).next('ul').slideToggle(500,'easeInOutQuad'); ...

Position the second line of text to align in MUI

I am facing an issue with aligning the text on the second line. It should match up with the text on the first line. For reference, you can check out the Codesandbox by CLICKING HERE <Card sx={{ maxWidth: 200 }}> <CardMedia component="i ...

Website loses its css after printing

I'm having trouble printing a website with a simple layout featuring two columns, each containing tables. The website I want to print is located at the following link: . However, when I try to print it using the JavaScript function window.print(), the ...

Browser fails to display input value when altered

I have noticed that when the value of the Input element changes, the browser does not display the updated value. However, you can verify this change by inspecting the DevTools in the browser. I am curious as to why the actual value of the Input element is ...

Application with menu design, similar to the layout of google.com on mobile devices

Have you seen the Android smartphone with Chrome from GOOGLE.COM? Did you notice the pop-up MENU that looks similar to an application? This menu has a "SPRING" effect, and I'm curious how Google achieved this result. I tried using the property "-web ...

Utilize the <wbr> tag within FormattedMessage and assign it as a value while coding with TypeScript

Trying out the optional word break tag <wbr> in a message within <FormattedMessage id="some:message" />. Context Some words or texts are too lengthy for certain parent elements on smaller mobile screens, and we have a column layout t ...

Image element for Material UI CardMedia

There is a component in Material UI called CardMedia that allows for media content within a Card. The Mui website showcases an example using the img tag with CardMedia. https://mui.com/material-ui/react-card/#complex-interaction I am interested in using ...

Activate modifications in a distinct column?

I've been exploring a solution to achieve a similar functionality where clicking or hovering on headings in a column brings up corresponding text in another column. My idea is to use list items with a carousel for this purpose, but I'm facing so ...

Adjusting the text color based on the dynamically set background color

If I have a calendar where each entry has a unique background color assigned to it (one color per user), including both light and dark colors that users can choose from, how can I set the text color to match the background style? Where should I begin wit ...

Having trouble applying CSS styles to an element using JavaScript

Hello, I have an unordered list with some list elements and I am trying to apply a CSS style to highlight the selected list element. However, the style is not taking effect as expected. function HighlightSelectedElement(ctrl) { var list = document.ge ...

Angular 2 navbar malfunctioning

I'm currently working on creating a navigation bar with images that, when clicked, navigate to specific components. Here is the code snippet I have so far: <nav class="sidenav col-md-1"> <ul class="menu" routerLinkActive="active"> ...

Press the HTML link to interact with a text using JAVA

I am currently working on creating a class that is able to interact with an A text/button in HTML. The webpage requires a username and password, so I have utilized JSOUP to parse the document and insert the user and password details using the .data method: ...

Improved method for transferring multiple form input values from a child to a parent window

I am working on a project where I have a child window containing multiple radio buttons. My goal is to send all the selected values from these radio buttons to the parent window. Currently, I am achieving this by creating a JavaScript string that contains ...

Is there a way to move the cards to the next line within a wrapper when the screen size is reached?

My goal is to showcase multiple elements in cards, obtained from my routing system, much like how I'm setting up my sidebar (which is functioning correctly). I have all the titles and icons ready, and the linking works seamlessly. This is where I&apo ...

Implementing Google Fonts into Next.js with the combination of Sass, CSS, and Semantic UI React

I have set up my next.config.js file with the following configuration: const withSass = require('@zeit/next-sass'); const withCss = require('@zeit/next-css'); module.exports = withSass(withCss({ webpack (config) { config.module. ...

JavaScript tool for implementing sorting features on an HTML table

I am facing an issue with my AJAX-loaded table where I need sorting functionality implemented. Despite searching for various JavaScript plugins, none seem to work efficiently due to slow performance or errors. The structure of my HTML table is unique with ...