Forum Moderators: not2easy
echo "<div style='float:left; font-size:15px; line-height:30px; background-color:#000000'><a href='#' class='mm'><span style='margin-left:2px; margin-right:25px'>ROUTES</span></a></div>";
echo "<div class='mmleft'><a href='#' class='mm'><span class='mm'>ARCHIVE</span></a></div>";
echo "<div class='mmleft'><a href='#' class='mm'><span class='mm'>QA</span></a></div>";
echo "<div class='mmleft'><a href='#' class='mm'><span class='mm'>MAINTENANCE</span></a></div>";
echo "<div class='mmright'><a href='#' class='mm'><span class='mm'>STATISTICS</span></a></div>";
echo "<div class='mmright' style='height:30px'>I want this area filled in with black color with no text inside</div>";
DIV.mmleft {
font-size: 15px;
line-height: 30px;
float: left;
background-color: #000000;
margin-left: 1px;
}
span.mm {
margin-left: 20px;
margin-right: 20px;
}
DIV.mmright {
font-size: 15px;
line-height: 30px;
float: right;
background-color: #000000;
margin-left: 1px;
}
a.mm {
color: #0000ff;
text-decoration: none;
}
a:hover.mm {
color: #ff0000;
text-decoration: none;
}
[div1 | div2 | div3 | div4 .........and I need to fill this gap until here ....... divx]
Marshall is there... meanwhile, have to query blue text on black... I couldn't read it. Called aging eyes and low contrast. Observation... not adding much to this particular discussion other than I'd force elements needed left to the left, and the other element needed right to the right and anything undefined in between will expand to fill the space.
I want those 1px wide grey deviders in the menu
<div>text</div>
<div class='mmdevider'></div>
<div>text</div>
<div class='mmdevider'></div>
... and so on
DIV.mmdevider {
background-color: #9c9c9c;
float: left;
width: 1px;
min-height: 30px;
}
that's how you say 'you idiot' while making it look elegant ..We don't call anyone "you idiot" in this forum - directly or indirectly esso, so I apologise if that was the meaning conveyed by tangor's post.
.. is this correct techniqueDepends on what you mean by "correct". :) Yes it may work, but there is a school of thought that believes in using semantic mark-up. As penders has already said a list of links is a list, so should be marked up as such. Definitely don't use a table - the references to that were to the css display:table property/value, not an actual table in the HTML mark-up. As Marshall has mentioned, support for that property has improved, but I'd suggest that unless you are definitely only supporting very modern browsers (say in a controlled environment like an intranet) it probably may not be the best choice for you at this stage.