I need some help with html and CSS

mashers

Stubborn ape
Member
Joined
Jun 10, 2015
Messages
3,837
Trophies
0
Age
39
Location
Kongo Jungle
XP
5,054
Country
The problem with using <li> is that the styling will be applied to each individual item, which is possibly why it's going out of alignment. Table columns expand to fill the widest object within them, so will always be aligned.
 
  • Like
Reactions: BurningDesire

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
So would something like this be acceptable

Code:
<table>
<col />
<col span="1" />
<tr>
<img class = "songs" src = "song_fs_01.png">
<img class = "songs" src = "song_fs_01.png">
<img class = "songs" src = "song_fs_01.png">
<img class = "songs" src = "song_fs_01.png">
</tr>
</table>
 

pwsincd

Garage Flower
Developer
Joined
Dec 4, 2011
Messages
3,684
Trophies
2
Location
Manchester UK
XP
4,319
ah lol my example :

Code:
<div class="top-bar"><span class="pull-left"><img class="mainlogo" /> </span> <span class="pull-right"> <span class="wiifont">F/W :</span> <select class="dropdown" v-model="system.firmware"><option>5.5.1</option><option>5.5.0</option><option>NOT A WIIU</option> </select> </span></div>

and a simpler idea :

http://stackoverflow.com/questions/2000656/using-href-links-inside-option-tag
 
  • Like
Reactions: BurningDesire

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
ah lol my example :

Code:
<div class="top-bar"><span class="pull-left"><img class="mainlogo" /> </span> <span class="pull-right"> <span class="wiifont">F/W :</span> <select class="dropdown" v-model="system.firmware"><option>5.5.1</option><option>5.5.0</option><option>NOT A WIIU</option> </select> </span></div>

and a simpler idea :

http://stackoverflow.com/questions/2000656/using-href-links-inside-option-tag
Ah I ran it and it does indeed do what I want. I will Fiddle with it. However it only does what I want when I click on it. Is there a way to make it drop down via hovering over it?
 

BurningDesire

Well-Known Member
OP
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
Country
United States
tbh my idea wasnt that good for what you need i would look more into css dropdowns... look here at the example...

http://www.w3schools.com/howto/howto_css_dropdown.asp
I try that and i get this any ideas?



Capture.PNG
 

mashers

Stubborn ape
Member
Joined
Jun 10, 2015
Messages
3,837
Trophies
0
Age
39
Location
Kongo Jungle
XP
5,054
Country
Just be aware that menus and things which rely on hovering might not work well in touch interfaces such as phones and tablets. It depends how the mobile browser handles hover. Some detect the first touch as hover and the second touch as click, but some detect the first touch as click. In the latter case, the user will not be able to use the features which require hover detection.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm