Thin white border around full width table when saved as web page

General comments and questions. Technical support.
Post Reply
pmnielsen
Posts: 2
Joined: Tue Nov 23, 2021 5:05 pm

Thin white border around full width table when saved as web page

Post by pmnielsen »

I have created an RTF document with the intention of saving as a webpage. At the top is a page-wide, single column and row table containing a banner image and nothing else. All margins are set to "0". Table width 100%. Picture "inline". Zoom is "to fit".

However, when viewing the HTML page in a browser, there is a thin white border around the table. In other words, the picture does not extend to the top and sides of the screen. This does not show in print view while in Atlantis.

Is there any way to remove this white space from the HTML webpage?
User avatar
admin
Site Admin
Posts: 2718
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Re: Thin white border around full width table when saved as web page

Post by admin »

The Print Preview and the Print Layout view modes of Atlantis Word Processor allow to see what a document will look like if printed. They have nothing to do with Web pages or Web browsers.

You can use the "inspect element" tool of your Web browser to find out which element of your Web page produces that margin.
pmnielsen
Posts: 2
Joined: Tue Nov 23, 2021 5:05 pm

Re: Thin white border around full width table when saved as web page

Post by pmnielsen »

The only solution I have found so far is to apply an external CSS with the following code. It removes ALL bordering white space around full width banner images, etc.

body {
margin: 0 0;
}

img {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
}

The second part of the code relates to images within tables that also have text. It makes them shrink proportionately with screen size so they are not cut off, thereby also causing the text to be cut off. In effect, this makes the content "responsive" and viewable on cell phones, etc.

Unfortunately, a link to any such external CSS needs to be pasted again into each page every time it is saved out of Atlantis.

Because the "save as webpage" is a distinctive and desirable feature of this software, it might be worth adding the above effects to the conversion process, or include the ability for the user to insert a few lines of HTML code at the point of save.
Post Reply