General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › How to show 2 element lines in the same line?
-
can2000 May 24, 2014 at 12:00 am
How to show 2 element lines in the same line?
May 24, 2014 at 12:00 amParticipants 1Replies 2Last Activity 8 years, 8 months agoHi guys,
I am newbie to this Xmetal stuff, and might not describe the problem very clearly, but I am trying.
I tried to use :first-child as below code (to display “Accomplished SB:” for the first sb), but it didn't work somehow.[code]accomplished-sb:first-child:before {
content: “Accomplished SB: “;
list-style-type: none;
color: #0033FF;
font-weight: bold;
font-size: 11pt;
margin-left: 10pt;
}[/code]So, I used another way to work around. But I don't know how to display 2 elements data in the same line? please see the attachment for details.
Thank you!
can2000 May 26, 2014 at 2:33 pm
Reply to: How to show 2 element lines in the same line?
May 26, 2014 at 2:33 pmhttp://dustwell.com/div-span-inline-block.html
It looks like “display: block” has a carriage return at the end. How to remove it? Thanks
Derek Read May 26, 2014 at 9:11 pm
Reply to: How to show 2 element lines in the same line?
May 26, 2014 at 9:11 pmAs “display:inline” is the default setting for all elements not setting any value for that property should give you the results you want.
Presumably the issue is that one of your elements has “display:block” or some other display value.Note that as this is XML there is no concept of
or . The CSS used to render XML in XMetaL Author does not have any assumed rendering behaviour for any elements except HTML and CALS tables. Not that you actually haveand here, but in XMetaL Author both of those elements (and any other elements except HTML and CALS tables) will render using display:inline by default. -
AuthorPosts
- You must be logged in to reply to this topic.