Jump to content

Justify + vertical align not working


wrathican

Recommended Posts

hey. if you take a look here:

http://www.ls12style.co.uk/projects/Wonstar/

the content of the 'filmstrip' at the bottom is mean to be justified and the vertical align is meant to be in the middle.

here is the css:

/* CSS Document */
body {
text-align:center;
background-color:#000000;
}

#container {
width: 65%;
margin: 0 auto;
text-align: left;
border-color:#FFFFFF;
border-style:solid;
color:#FFFFFF;
border-width: 2px;
}

#filmstrip {
position:relative;
height: 100px;
text-align: justify;
width: 100%;
vertical-align: middle;
}

#navigation {
position:absolute;
text-align: left;
width: 15%;
}

#bigpic {
width: 100%;
text-align: center;
padding-top: 20px;
}

img.filmstrip {
border-color:#FFFFFF;
border-style:solid;
color:#FFFFFF;
border-width: 1px;
}

img.bigpic {
border-color:#FFFFFF;
border-style:solid;
border-width: 2px;
}

Link to comment
https://forums.phpfreaks.com/topic/97766-justify-vertical-align-not-working/
Share on other sites

You have the following class in your css

img.filmstrip {
border-color:#FFFFFF;
border-style:solid;
color:#FFFFFF;
border-width: 1px;
}

That is what I meant by apply vertical-align: middle; to the img.filmstrip class

 

Added:

[code]img.filmstrip {
border-color:#FFFFFF;
border-style:solid;
color:#FFFFFF;
border-width: 1px;
        vertical-align: middle;
}

[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.