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
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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.