Jump to content
xisto Community
-Sky-

Css Line-height Problem

Recommended Posts

Hey all. I am having a little issue with CSS and HTML. I want to make a line going straight down the page (line-height:100) or something on the left side of a page, however I don't know how to do this. :) Could I get some help please? Thank you. The line in the red box is what I want.

post-67096-1238515995_thumb.png

Share this post


Link to post
Share on other sites

You want to use

{ background : url(image url) repeat-x;float: right or left;}

and you may want to use the float property as well to help align your background image.

Share this post


Link to post
Share on other sites

No no. I am not wanting to align an image. It's just a line I want to be added using CSS/HTML, so it cannot be copied unless using the Source.

Share this post


Link to post
Share on other sites

Yeah it all depends on what type of layout and the elements in it that determine how you would create that effect. If you post your layout code and give suggestions to what you may or may not like we can maybe come up with a possible solution for you.

Share this post


Link to post
Share on other sites

Yeah it all depends on what type of layout and the elements in it that determine how you would create that effect. If you post your layout code and give suggestions to what you may or may not like we can maybe come up with a possible solution for you.

Yes, thanks for your support sonesay. :)

Sorry Sky I thought you ment align, My bad!But yes it does depend on what layout.

- Dark

Andrew, I know it depends on the layout, however I am wanting this on a Custom Page on Central-Gaming forum. :P

Share this post


Link to post
Share on other sites

No no. I am not wanting to align an image. It's just a line I want to be added using CSS/HTML, so it cannot be copied unless using the Source.

Although they'll have to look at the source code to take the image (though why would they want to take the image?), C-Panel has a way to prevent hotlinking. But you'll need to do research on the clear property. Even if you were to use jlhaslip's code, i can tell you right now, from experience, that won't get you the results you are looking for. If you run off of what Saint_Michael provided and use the clear property, then you'll get better results.
By the way, the CSS property line-height is for text, that is, the spacing between the lines of text.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.