HighDots Forums  

Re: Center one span inside another

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Center one span inside another in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
news@chthonic.f9.co.uk
 
Posts: n/a

Default Re: Center one span inside another -SOLVED - 12-02-2004 , 05:36 AM






Mr.Clean wrote:
Quote:
The "ugly...bordered multiline span" is the same as a GroupBox
control
in a Windows application. This control can is a container for radio
buttons or checkboxes but other controls can be placed inside it as
well, in case you are ignorant of Windows application programming.
In that case, is there a good reason why you aren't using a html
<fieldset>
around your input elements?
http://www.mozilla.org/quality/brows.../fieldset.html
That would achieve what you want without the complex CSS

MikeT



Reply With Quote
  #12  
Old   
Lauri Raittila
 
Posts: n/a

Default Re: Center one span inside another -SOLVED - 12-02-2004 , 05:27 PM






in comp.infosystems.www.authoring.stylesheets, Mr.Clean wrote:
Quote:
lauri (AT) raittila (DOT) cjb.net says...
in comp.infosystems.www.authoring.stylesheets, Mr.Clean wrote:

span style=

inline styles are not good idea.

"text-align: center;

Does nothing, as it only aplies to block elements.

border:thin inset;

I really think it is ugly to have bordered multiline span, so hopefully
you don't have much text in it.

height:53px;
width:185px;

Neither should do anything, and don't on modern browsers or IE6 in
standards mode. Why aren't you using div instead of span.

background-color:#F9DFB2;"

You forgot to use color with your background color.

span style="font-family:'MS Sans Serif';

That is bitmap font, at least in my systems. So user might get ugly font
if he overrides your size, which he most likely do.

font-size:8px;

Too small and using px unit is bad when setting font. In my version of MS
Sans Serif, there is no 8px version, I think that yours haven't have that
either - so you are actually seeing 8pt version which size 11px. (easily
tested, remove font-family rule)
Delphi font controls used pt as unit, at least in version 5 which is last
one I have used.

Quote:
If users font is true type or similar (very likely if he don't have MS
Sans Serif, which is about 99% certain if he is not using MS OS), he
don't get 8pt font like you, but he will get 8px font, and that is not
readable on any resolution, unless special fonts are used.
Snipped all parts, that were not relevant (or maybe they were...). As you
see, there is planty of them left. As you can see, you skipped over my
message too quickly. If you had bothered to read it, you might have
learned something. You did give me no reason why some of them was wrong.

Quote:
If you'd followed the entire thread, you would have know that I was
working on producing an HTML form that mimics a form from my Delphi
application.
But, as I wasn't, and you had snipped most stuff, I didn't. Also, there
doesn't seem to be any information on that to be found on google. Could
you post message-id?

Quote:
Essentially I am creating a DFM (Delphi Form File) to HMTL
converter. I want the HTML to match the Delphi form as close as
possible. I don't want to screw with em's and funky placements. I use
the measurements off the form itself to dynamically create the CSS from
the DFM file.
Sounds pretty useless idea... After all, what is the point, as your HTML
+ CSS is less compatible as DFM file?

Quote:
So far, I've gotten pretty good results.
Only tested in IE in quirks mode, I assume. And you were told ages ago to
use block level element for block level effect.

Quote:
The "ugly...bordered multiline span" is the same as a GroupBox control
in a Windows application. This control can is a container for radio
buttons or checkboxes but other controls can be placed inside it as
well, in case you are ignorant of Windows application programming.
You doesn't seem to have idea how borders should be drawn on inline
element? Surely it is not at all like group box control.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.