Hello people. Still trying my hands on pure css without tables. Can somebody please show me how I can vertically center the divs in a stacking flow and all to be inside the "mainWrapper div"?
below is the codes am using
<body>
<div id="MainWrapper">
<div id="holder">
<div id="LogoHolder">
<div id="HorseLogo">
<img src="images/HomePage/GrapLogoBig.png" width="120" height="120" alt="CavLogo" />
</div>
</div>
<div id="Holder1">
<h1>MY GUYS</h1>
<div id="Line"><img src="images/HomePage/LogoLine.png" width="375" height="3" /></div>
<div id="CommandHolder">
<h2>HAULAGE | OUTDOOR MEDIA | PRESS</h2>
</div>
</div><!-- end of Holder1-->
<div><!-- end of holder -->
Could you provide the URL to your page, stini? I find it so much easier to work from the actual document. My Web Developer Tool Kit page (link in sig. below) is table free if you wish to check it out.
James
Last edited by polyglot; 01-20-2013 at 07:52 PM.
Reason: added info
I see you are using an XHTML 1.0 (transitional) Doctype (you should use a strict Doctype) and are attempting to style vertical image placement using align="texttop" which violates the xhtml rules for using the align element that expects the attributes "top", "middle", "bottom", "left", "right". You are also missing the "alt" (text) attribute for some images. Your stylesheet will not effect the image placements I believe you are seeking. Are you attempting to align images vertically similar to those depicted here: http://jp29.org/cgau.htm (ignore the content)?
I can re-write your markup and stylesheet if you wish once I determine what you are trying to achieve.
James
Last edited by polyglot; 01-21-2013 at 08:22 PM.
Reason: corrected spelling
Hi James.
Exactly what am trying to achieve. The vertical alignment of all the div element. Please go ahead and write a better markup and stylesheet. Am also taking note of the corrections you pointed out.
Thank you so much
I found your Markup coding to be very confusing and complicated - sorry. Your use of the height attribute is not appropriate for what you are trying to achieve. I composed a quick snippet of XHTML 1.0 (strict) and CSS3 coding that I believe will produce what I think you are after -- it is quite brief and bare bones, but it may form a foundation for you to build on. It is not very elegant coding, but I used your structure as a basis. I loaded the result of my efforts on to my server to provide a live view and facilitate validation:
Hi James, right on the mark. Thanks so much for this foundation. I really appreciate it and am building on it. Sorry I didnt get in touch earlier than this, my internet was cut off and I hope you sorted out the medical emergency.
Will keep you posted on the final output of my project and I hope I can always tap you if I run into any challenge. thanks a million.
Hi James, right on the mark. Thanks so much for this foundation. I really appreciate it and am building on it. Sorry I didnt get in touch earlier than this, my internet was cut off and I hope you sorted out the medical emergency.
Will keep you posted on the final output of my project and I hope I can always tap you if I run into any challenge. thanks a million.
Bookmarks