Dynadot โ€” .com Transfer

Newbie CSS Question; Text Width w/in Container

SpaceshipSpaceship
Watch
Hey,

I'm fairly new to CSS, so I am bumbling around taking apart other sites' css to learn how to do certain things. Right now I'm having problems making the text reach only a certain length within a container tag. How do I do this? If you want to see what I mean, please click this link. (Sorry I had to change it, people were asking me what's going on with the website.) Basically I just made one container and had the navbar overlay it. But I don't want the text within the container to reach the entire horizontal length of the container. How do I make it stop at a certain # of pixels? If this is possible and there's another way of going about this to make it look like I intend for it to look, please inform me. I realize I am a total newb and probably doing things the wrong way.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
You can do this using padding or width.
 
0
•••
No no, you see the problem is that my background and title banner is the width of the container, and my navbar is overlapping it. If I change the padding, it'll center it and the banner/text will look skewed like this. If I change the container width, it looks fine in Internet Explorer, but Firefox and Netscape tell the ugly truth and the navbar is obviously not right, like so (you will have to open it in firefox or netscape to see what's wrong).
Feel free to take a look at the CSS and tell me what I should be doing instead of what I am doing.
 
0
•••
Okay I've recoded the way the title/container/navbar elements work. But now I'm having a problem making them look alike in both I.E. and Firefox/Netscape. The two types of browsers seem to display margins and padding in two totally different manners. I am thinking of favoring I.E. because it is more popular, but then it looks a little funky in the other two. What do you suggest? Take a look.
 
0
•••
As odd as it may seem considering there was only 1 reply and it didn't quite answer my question, I got a new layout working and it looks pretty good, so thanks for the direction!
 
0
•••
Spaceship
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back