Forum Moderators: not2easy
I want to add a horizontal lists get a better CSS and maybe a background image
Marshall
[edited by: Marshall at 2:21 pm (utc) on Nov. 3, 2007]
HTML lists are vertical - they run top to bottom. To get them horizontal you have to use style="display: inline" which is imbedded CSS, or use a div in a linked stylesheet.
That is EXACTLY what I just so happen to be working on this very week, converting imbedded tables, (used for top navigation under the header) inside table layouts to horizontal lists; and a big issue is getting the text (more specifically navigation links) in those horizontal lists to format properly.
I am wondering if it is possible to put lists in a website via a database?
Yes, this is perfectly possible, although the database would be read with a server-side scripting language (such as PHP) which then outputs HTML to be sent to the browser.
HTML can't read the database directly - if that's what you're thinking? :)
[edited by: Marcia at 8:32 pm (utc) on Nov. 3, 2007]
HTML lists are vertical - they run top to bottom. To get them horizontal you have to use style="display: inline" which is imbedded CSS, or use a div in a linked stylesheet.
Marcia you're somewhat right but it's not that simple, If you or anyone for that matter thinks that a horizontal menu is as simple as
display: inline; then I would be way interested in an example thread! [edited by: SuzyUK at 10:39 pm (utc) on Nov. 3, 2007]
If you or anyone for that matter thinks that a horizontal menu is as simple as display: inline; then I would be way interested in an example thread!
You have to understand that things seem very different to someone who's brand new to something, which is apparently the case with this thread.
Here's a thread:
[webmasterworld.com...]
It's somewhat easier with images, since there isn't the text formatting to deal with. It worked with using images, but to get a menu changed to a right justified horizontal list (within a table cell) with text links, I had to start with the code from List-o-Matic and change the font styling from there.
[edited by: Marcia at 11:01 pm (utc) on Nov. 3, 2007]
The OP has stated in previous posts, and indeed the title of this post that s/he wants to know where to start with CSS.. IMHO this is not the place you don't start with CSS and P(ositioning) you start with CSS ;)
But, I also know that a beginner, or a 'lightbulb' comer, to CSS these days often comes into the "game" from different angles and knows different things.. so I no longer assume a beginner is starting at step 1 with HTML without even hearing of CSS, have been 'bitten' too often :o
Marcia, thanks for the clarification, and believe me I understand - at least I hope I do seeing as I have a couple of old contributions on List-o-Matic - ;)
I hope this wee confab (between senior members) is fully appreciated by malcomcroucher ;),
and If I can find one of the threads here at WebmasterWorld which gives examples of both horizontal and vertical lists then I will post it, does anyone have one?
edit: added
I found some threads: my 'flag' list is too long so I had to use a Google search! [google.com] ;)
Horizontal Menu, 2 different samples [webmasterworld.com]
See Post #2 which has example of both horizontal and vertical [webmasterworld.com]
[edited by: SuzyUK at 8:51 am (utc) on Nov. 4, 2007]