View Single Post
Old 07-31-2019, 03:59 AM   #1
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
centered text having a specific width

Hi,

i cant get a centered text having a specific width. Simple Example:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="../Styles/Style0001.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<p class="test">Test test test</p>
</body>
</html>
Code:
p.test {
  text-align: center;
  border-bottom: 1px solid black;
  width:10em;
}
As soon as i add the width to the style the text is no longer centered. Without it, the border sticks out to far,

I tried with divs but wanst succesful. Any idea? And of course i need this worklng in ADE and RMSDK

Vroni
Vroni is offline   Reply With Quote