| 10:00 am on Mar 8, 2011 (gmt 0)|
Hi s7orm, I'll have a look at your page. I can imagine you want to reward someone to solve your problem, feel obliged to do something myself many times when the impossible was made possible, but help is for free over here. Not many places around the globe where you get attention without having to pay for it, but it actually happens at this place.
| 10:09 am on Mar 8, 2011 (gmt 0)|
I need some code in order to help you. A hyperlink with an unwished red line sounds solvable to me, just have to look what you did and didn't specify in your CSS.
As for the rest of your question, I am not sure if I understand what you want, also some code would be helpful to know what we are talking about here.
| 10:12 am on Mar 8, 2011 (gmt 0)|
I don't think we have a relationship category on this forum.
| 10:26 am on Mar 8, 2011 (gmt 0)|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<center><img src="images/Website_logo.png" />
<div id="nav" style="position: relative; left:-210px; top:0px; width:449px; height:177px; overflow: hidden;"><a href="http://www.example.com/pages/exampe/111111">
<img src="images/Website_FB.png" border="0"></a>
<p>example text<br />
example text <A HREF="http://example.COM/DOWNLOADS.HTML">DOWNLOAD</a><br />
NEXT MIXTAPE IS COMING VERY SOON! THIS IS THE TEMP PAGE FOR IT.
<br />QUESTIONS? EMAIL - email@example.com</p>
/* CSS Document */
i fixed the red outline by putting a border="0" on the image
what im trying to do is:
when the bar scrolls up, (like the buttons are at the top of the page)
it will stick at the top and act like a header.
[edited by: engine at 2:54 pm (utc) on Mar 8, 2011]
[edit reason] sidescroll, and examplified [/edit]
| 5:40 pm on Mar 8, 2011 (gmt 0)|
Welcome to the forums, s7orm
1. You want that portion of the page in its own div - one that begins with position "relative", as you have done.
| 11:00 pm on Mar 8, 2011 (gmt 0)|
Ahh thanks for the help!
im still trying to get this working now.
i have the buttons along the strip
i have them setup as div's with relative positioning.
how do i make them not stack ontop of eachother when i make the size of the page smaller?
| 6:54 am on Mar 9, 2011 (gmt 0)|
It all depends how you position them in the first place. If you got a fixed pixel distance, then they won't stack up.
You may want to start with position:static instead of position:relative.
| 7:01 am on Mar 9, 2011 (gmt 0)|
whats the difference between static and relative?
and how can padding effect a div?
like why would you use padding when you could just change the top & left codes of the div?
| 8:35 am on Mar 9, 2011 (gmt 0)|
Might take a look at FRAMES (as in html frameset, not iframes) to lock a portion(s) of the viewable window. This has been around long before js and is still valid. Bing and Google (and all the other search engines) read FRAMES fine. There are some benefits, as well as downsides, for using FRAMES.
Just a suggestion.
| 10:19 am on Mar 9, 2011 (gmt 0)|
"Static" is the default flow of a document. It's what you get if you don't declare any position attribute. It's the natural way for any element to be positioned.
If you try to dictate the exact position of every element, you'll start to find major problems when someone has their window sized differently than the window you designed in.
You'll also find cross-browser variations when you use text that will make you crazy trying for pixel-perfect positions. You're much better off to code with the natural, default flow.
It sounds like you might be helped working through some HTML and CSS tutorials. The website at w3schools.com has some good basic instruction with interactive areas for you to experiment with code. Good place to learn about areas that are new to you.
| 12:07 pm on Mar 9, 2011 (gmt 0)|
Yeah, ive been using w3schools for pretty much everything i need,
but the real problem is finding out what im looking for, like the names of things and such
im not a complete noob to html, and css, i actually helped my uncle pass his college class with an A in web design and it consisted of all html and css (very proud of myself, i was 16 when i did that :p )
i still dont understand the difference between the div positions.
i googled it plenty of times but cant get a feel..
if anyone has time, could they in-depth explain what;
static, absolute, relative, and the other(s) are, and the difference between them?
| 2:55 pm on Mar 9, 2011 (gmt 0)|
HI s7orm, and welcome to WebmasterWorld,
The best place for the in depth explanation you have asked for is the recommendations. I suggest start with the definition of position [w3.org], which explains the four values, then the visual formatting model [w3.org] which explains how they are drawn.