Remove a border
- Open Microsoft Word.
- Click the Page Layout tab.
- In the Page Background group, click the Page Borders option.
- In the Borders and Shading window (shown below), if not already selected, click the Page Border tab.
- Select None to remove any border on the page.
CSS Border Style
- dotted - Defines a dotted border.
- dashed - Defines a dashed border.
- solid - Defines a solid border.
- double - Defines a double border.
- groove - Defines a 3D grooved border.
- ridge - Defines a 3D ridged border.
- inset - Defines a 3D inset border.
- outset - Defines a 3D outset border.
- You can apply the border to the inner element if you can, means wrap the content into another tag.
- I suggest you use display: table for div.sphinxsidebar instead keeping the border not collapsed but if you want it to be disappeared you should use javascript to check if empty and set border to none. –
The
border-
color property sets the
color of an element's four
borders. This property can have from one to four values.
If the border-color property has four values:
- top border is red.
- right border is green.
- bottom border is blue.
- left border is pink.
Set the cellspacing attribute of the table to 0 . You can also use the CSS style, border-spacing: 0 , but only if you don't need to support older versions of IE.
Select your printer from the “Printer” drop-down menu and select “Actual size” under “Size Options.” Click the “Page Setup” button. If your printer supports borderless printing, the Margins section of the dialog box will be editable; change each margin setting to “0” and click “OK.”
If you scan or convert images to PDFs in your business, you will immediately notice that the resulting PDF files have a white border. This can be a problem if you need to print the documents. To solve this, use Adobe Acrobat to crop the PDF so that the white space is removed from all borders.
Workaround for printing slides without white edges
- Go to Design > Slide Size > Custom Slide Size.
- Select either Portrait or Landscape, depending on the orientation of the slide you want to print.
- Click View > Notes Master.
- In the Placeholders group, uncheck the boxes for the text placeholders (such as Page Number, Header, Footer, and Date) that you don't want to print.
Press "Ctrl-Alt-Shift-K" to open the Clipping Path dialog box, and then select the "Detect Edges" option from the "Type" drop-down menu.
How to Remove the White Background from an Image with the Magic Eraser Tool
- Step 1: Open your image. Select the image from your folders an open it with Photoshop.
- Step 2: Unlock the layer.
- Step 3: Select the Magic Eraser tool.
- Step 4: Erase the background.
- Step 5: Trim and save as PNG.
Choose Layer > Matting > Defringe. For starters, try a setting of 1 pixel and click OK. At this point Photoshop goes off and replaces the white edge pixels with a mixture of the colours in the background and the colours in your object. If 1 pixel doesn't do the trick, then try Defringe again with either 2 or 3 pixels.
The HTML <a> element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address. Content within each <a> should indicate the link's destination.
Browsers always add spaces between some elements, including buttons. To remove these, you need to set font-size to zero for their parent container. Then, to restore text size inside buttons, set font-size for them.
Defines the spacing between words of a block of text.
- default word-spacing: normal; The spacing between the characters is normal. The quick brown fox jumps over the lazy dog.
- word-spacing: 5px; You can use pixel values.
- word-spacing: 2em; You can use em values: this allows the spacing to remain relative to the font-size.
Definition and Usage. The border-collapse property sets whether table borders should collapse into a single border or be separated as in standard HTML.
Definition and Usage. An element's padding is the space between its content and its border. The padding property is a shorthand property for: padding-top.
The margin property defines the space around an HTML element. The margin specifies a shorthand property for setting the margin properties in one declaration. The margin-bottom specifies the bottom margin of an element. The margin-top specifies the top margin of an element.
Note: Always declare the
border-style property before the
border-
width property. An element must have
borders before you can set the
width.
border-width: thin medium thick 10px;
- top border is thin.
- right border is medium.
- bottom border is thick.
- left border is 10px.
To add a border to your table, you need to define the <style> of your table. Remember to add borders also for <th> and <td> tags to have a complete table. Set the border-collapse property as well (if you don't define the border-collapse, it will use border-collapse: separate by default).
Chapter Summary
- Use the HTML <table> element to define a table.
- Use the HTML <tr> element to define a table row.
- Use the HTML <td> element to define a table data.
- Use the HTML <th> element to define a table heading.
- Use the HTML <caption> element to define a table caption.
- Use the CSS border property to define a border.
Style borderColor Property
- Change the color of the four borders of a <div> element to red: borderColor = "red";
- Change the color of the top and bottom border to green, and left and right border to purple, of a <div> element: borderColor = "green purple";
- Return the border color of a <div> element: borderColor);
HTML table borders without CSS
- Bgcolor attribute of table tag is used to make its background to be of a certain color.
- Bgcolor attribute of tr tag is employed to make the background of table's content (that is, rows and cells) to be of a certain, different from table background's, color.
Basically, a margin is the space around an element and padding refers to the space between an element and the content inside it. In creating the gap, the margin pushes adjacent elements away. On the other hand, padding is placed inside the border of an element.