hey Vijay,

could not view the links you posted, however I think I understand your
problem.

what you want to do is wrap your middle aligned content with a <div>
element and give it a class name of class="middleAlign" or something
like that.

then in your CSS define .middleAlign (which is a block level element)
a margin: 0 auto;

ie:

.middleAlign{
  margin: 0 auto;
}

what that does is defines a top and bottom margin of 0px and
automatically fits the right and left margins of the element to the
edges of its container, pushing the content towards the center of the
parent element.

hope this helps.

peace,
Brandtley

--
Brandtley McMinn
Gigglebox Studios
[email protected]


On Jun 10, 7:40 pm, Vijay Kumar Adhikari <[email protected]> wrote:
> CSS gurus,
>
> I need to align some text to the middle of a heading bar. The look I
> am trying to achieve 
> ishttp://c-24-245-20-58.hsd1.mn.comcast.net/~vijay/spec.png
> and what I have got so far 
> ishttp://c-24-245-20-58.hsd1.mn.comcast.net/~vijay/index.html.
> I can fix the fonts/size/width of the whole thing, etc. The problem is
> that the "Section" and the button are not middle aligned. Moreover, I
> don't want to specify height of the black bar but if I don't it just
> doesn't show up. What I am I missing here?
>
> Thanks.
>
> --
> Vijay

-- 
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to