473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Horizontal Spacing with HTML 5

KeredDrahcir
426 256MB
I have a website coded currently in XHTML and I recoding it in HTML 5. There a few spacing issues that need to be sorted out in order get it to look the same.
I'm replacing most of the inline-block with block if I can get it to look the same and setting the vertical align on images to something other than baseline.

The only problem I'm having is some elements of the page have a bit of horizontal spacing on them. One page had the image about a pixel or maybe half a pixel to the left and the same applied to some text in a table, some of my list and some other content and buttons.
It's not global and I don't know why it's there and only affecting some elements.
Is this a known issue?

The alignment on the two right columns is a bit out.
Expand|Select|Wrap|Line Numbers
  1.  
  2. ul {
  3.     list-style:none outside none;
  4.     margin-bottom: 15px;
  5. }
  6.  
  7. ol {
  8.     margin-left: 20px;
  9.     margin-bottom: 15px;
  10. }
  11.  
  12. ul li ol, ul li ul {
  13.     margin-bottom: 0;
  14. }
  15. ul li {
  16.     padding-left:0;
  17.     font-family:verdana, arial, sans-serif;
  18.     font-weight:normal;
  19.     font-style:normal;
  20.     text-decoration:none;
  21.     list-style:none;
  22. }
  23. .third-column {
  24.     float: right;
  25.     padding: 0 10px 0 5px !important;
  26.     width: 336px;
  27. }
  28.  
If I take out the padding on the third column style, it shows the same. Why is HTML 5 interrupting the padding differently?
Attached Images
File Type: jpg XHTML.jpg (32.2 KB, 169 views)
File Type: jpg HTML5.jpg (32.2 KB, 177 views)
Feb 8 '16 #1
0 5665

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Poonam | last post by:
Hi there. How can i maintain the spacing between to divs if palced side by side with 10px spacing between them.. Not using any tables. And atleast making one of the div relative positioning. ...
3
by: Bernd Kuegle | last post by:
Hi! How is it possible to reduce the space between a pargraph and a horizontal line (top and bottom). It doesn´t look so good if there is the default space. Thanks Bernd
0
by: Dave | last post by:
Hi, I currently have the following in order to have a little bit of horizontal spacing separation between the bullet images and the text in the list (and I'm happy with the vertical separation...
1
by: yxq | last post by:
Hi Can the listview itmes's spacing(horizontal and Vertical spacing) be changed? Thanks
4
by: metoikos | last post by:
I've scoured the web (clumsily, I'm sure) for information on the difficulties I am having, checked my markup in validators, and had a friend with more CSS clue look over it, but I haven't had any...
10
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
1
by: quantass | last post by:
Just a quick question in regards to the Obout Tree View. How do i go about adjusting the horizontal spacing before & after the plus/minus button for each node seperately? Also how do i adjust the...
2
by: mathewgk80 | last post by:
Hi all, I would like to know whether we can increase the thickness of a horizontal line.. <html> <head> <title>HR</title> </head> <body> <hr>
6
by: greynium | last post by:
hi Please see http://thatshindi.oneindia.in in Firefox and IE7. The spacing between the lines are different. What we see in Firefox is what we desire. How do we fix things to make it look...
0
by: howa | last post by:
Consider a simple HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>YUI</title> <link rel="stylesheet"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.