10 replies [Last post]
tecdac
tecdac's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-11
Posts: 6
Points: 7

I can't seem to get a div to take my stylings.

It's a very simple layout right now. I have validated HTML and CSS still the div won't appear.

I have given it a bright red background to try to find it. Nothing.

here is the test domain http://pa.dlconcepts.com

CupidsToejam
CupidsToejam's picture
User offline. Last seen 2 weeks 23 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

what div isnt appearing?

what div isnt appearing? whats its id or class?


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

CupidsToejam
CupidsToejam's picture
User offline. Last seen 2 weeks 23 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

maybe because you have

maybe because you have display: none; set for #rightcolumn. That will make it not show up


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

tecdac
tecdac's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-11
Posts: 6
Points: 7

I have removed the display:

I have removed the display: none and still nothing.

It's as if that div does not exist.

And yes, you were right about which div it was rightcolumn

Verschwindende
Verschwindende's picture
User offline. Last seen 5 days 20 hours ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

#rightcolumn { color:

It is there, it's just underneath the floated content. You just need to add a left margin to shift it to where it needs to be.

#rightcolumn { 
color: #333333;
width: 150px;
background-color: #ff0000;
position: relative;
margin-left: 830px;
}

yet again.

tecdac
tecdac's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-11
Posts: 6
Points: 7

Tried the left margin.

Tried the left margin. Didn't work.

That left me with a question anyway: if I have divs that are relative I expect them to but up next to each other. Why would I need to give it a left margin?

Verschwindende
Verschwindende's picture
User offline. Last seen 5 days 20 hours ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

tecdac wrote:Tried the left

tecdac wrote:

Tried the left margin. Didn't work. ...

:shrug:

Well, it worked before you started changing stuff. FFFfffffffffffffffffffffffffffffffffFFFFfffFF...

Try adding some content to sidebox or whatever it's called.

yet again.

tecdac
tecdac's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-11
Posts: 6
Points: 7

I deleted the css and to make

I deleted the css and to make sure the page was actually looking at that file. It is.

I have reuploaded it.

tecdac
tecdac's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-11
Posts: 6
Points: 7

No freaking height

No freaking height parameter!

THANKS FOR YOUR HELP!!!!!!!!!!!!!!!!

CupidsToejam
CupidsToejam's picture
User offline. Last seen 2 weeks 23 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

you wouldnt need a fixed

you wouldnt need height, but content inside the div helps.


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

tecdac
tecdac's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-03-11
Posts: 6
Points: 7

I will keep this in mind.

I will keep this in mind. CSS can be frustrating sometimes.