block menu like this. how?

Started on the old forum in February 2013 · view the original in the archive · old links redirect here

#block-menu #css #width

7 replies · 664 views · started 13 years ago · 1 min read

5 participants
dominik92r Junior · 38 posts #1

hi, on my site i have got menu. in this menu every button have this same width. for example i have 4 buttons - 25% for one button. i would make 3 buttons, first 50% width, second 25% and third 25% too. how to do it? i this must be in display:block i don't want float or something like this because float might bad display in some older phones. please i'm weak in css.

i wan't make similar menu like this:

Attachments: Switcher.png
something else Fellow · 2,296 posts #2

I don't think display:block / onhover unblock wont work on older phones either

dominik92r Junior · 38 posts #3

I don't care hover. I know this one won't work all right.

something else Fellow · 2,296 posts #4

display:block will also cause big blank gaps on your page - which will look really bad >.<

dominik92r Junior · 38 posts #5

something else wrote: display:block will also cause big blank gaps on your page - which will look really bad >.<

so, what you could me advise ?

arnage Lead · 811 posts #7

The menu on left side of image i don't know, menu on right side can be done with something like this.

<table width="100%">
	<tr>
		<td>
		One part
		</td>
		<td>
		Second part
		</td>
	</tr>
</table>

And design it in CSS. Each attribute can have own design class.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close