Learn Bootstrap

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

Hugo <Nabble>
fschmidt wrote
You can add another tag like "item".  The main point is that each item should be enclosed in tags.  Another example is the "option" tag inside a "select".
An "item" tag is better.
fschmidt wrote
The class tag is ugly and should be restricted to classes that the user defines himself if he wants CSS.  To me "center" is like "b" or "i".
The "center" tag is usable, but I will never use it. A good practice is to separate the content from the presentation. This is why CSS was built. I can easily change the look of a website by changing the CSS.
fschmidt wrote
I can't think of any example of static text being defined as an attribute in HTML.  Can you?
Yes, the "title" and "alt" attributes. The title is displayed when you hover over an element. The alt is displayed when an image isn't available.
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

fschmidt
Administrator
Hugo <Nabble> wrote
The "center" tag is usable, but I will never use it. A good practice is to separate the content from the presentation. This is why CSS was built. I can easily change the look of a website by changing the CSS.
How is "center" different from "b" and "i"?  I think all tags are basically about presentation and the CSS distinction is nonsense.  I wish to never see CSS again.

Yes, the "title" and "alt" attributes. The title is displayed when you hover over an element. The alt is displayed when an image isn't available.
Okay then I am fine with using an attribute.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

Hugo <Nabble>
fschmidt wrote
How is "center" different from "b" and "i"?  I think all tags are basically about presentation and the CSS distinction is nonsense.  I wish to never see CSS again.
There is no difference, they are all old HTML tags. The "b" and "i" tags have been replaced by "strong" and "em" tags because they don't imply bold and italic. You can choose their style with CSS and I think this is better.

My problem with banning CSS is the amount of work to change the look throughout the website. Imagine your bold tag is like this...
        ...
        <b color="#333">some text</a>
        ...
        <b color="#333">another text</a>
        ...
...and you have dozens of articles with that bold tag. What if you want to change the color to #345? How is this handled in your world? Text search and replacement? What if the articles are in a database (like Nabble's)? CSS is just more efficient.
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

fschmidt
Administrator
I never suggested banning CSS, I only said that I never want to see it again.  In other words, you should provide colors that work, and as long as I don't want to customize those colors, I shouldn't need CSS.  On the other hand, centering is a very common need so one should be able to do this without CSS.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

Hugo <Nabble>
Okay, I assume that's fine. I will continue to work on this and try to implement a responsive table because that's a challenge.
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

fschmidt
Administrator
In reply to this post by Hugo <Nabble>
Hugo <Nabble> wrote
fschmidt wrote
I think the dropdown text should just be the text in the dropdown tag that isn't part of an item.
This is fine, but will make the javascript code (that builds the dropdown) more complex. For example, we could have this:
<dropdown>
	Dropdown
	<a href="http://www.nabble.com/">Nabble</a>
	Some text
	<a href="http://www.cnn.com/">CNN</a>
	More text
	<a href="http://www.yahoo.com/">Yahoo!</a>
</dropdown>
Then the dropdown should be "Dropdown Some text More text". Reading an attribute is easier than parsing the children.
There is another issue with using an attribute which is that you can't use HTML in the attribute which means no images or styling text.  I looked at Yahoo and Amazon for examples.  Yahoo has a flag image dropdown on the upper-right of the homepage.  Amazon has 2 lines of text with the second line bolded.  This should look like this:
<dropdown>
	Shop by<br/>
	<b>Department</b>
	<item><a href="#">Books</a></item>
	<item><a href="#">Movies</a></item>
	<item><a href="#">Music</a></item>
	...
</dropdown>
In your example with "Some text" and "More text", I don't care if this is included or not.  If it is easier, then you can just use the first text before the first item and ignore the rest.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

Hugo <Nabble>
Okay, please take another look:
http://hugo.s1.luanhost.com/custom.html

I created a responsive table, but it doesn't work well at this point. It loses the headers when the window is narrow. We need labels to show what each value is, but ideally we should be able to merge some columns into a row like "2 replies, 15 views" instead of having one row for each value. I am reluctant to do anything like that because you have a lot of restrictions in mind and I don't want to waste my time with something you won't like.
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

fschmidt
Administrator
This post was updated on .
I am back.  We can discuss what to do next.

Also, I don't like the "footer" tag.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

Hugo <Nabble>
We discussed this. You can create a forum and assign things to me.
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

fschmidt
Administrator
Here:

http://better-html.1115333.n5.nabble.com/
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

Hugo <Nabble>
I just registered and subscribed.
Reply | Threaded
Open this post in threaded view
|

Re: Learn Bootstrap

fschmidt
Administrator
ok, closing thread
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
12