Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CSS question

CSS question
Thread Tools
Mac Elite
Join Date: Oct 2000
Location: Middle of Germany
Status: Offline
Reply With Quote
Jan 4, 2017, 03:47 PM
 
Hey everyone,

I have a CSS question. Look here:
CopyRight

Do you see that the difference between the border of the general page (the white one) and its content is not very big? Only a few pixels! I don't know the English word, margin or so... How can I change this with CSS? Can I increase this difference somehow? Twice as big would be not so bad, much better...

Thanks,
PeterParker
Think a new age is coming.
     
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Online
Reply With Quote
Jan 4, 2017, 04:26 PM
 
It looks fine to me. The logo is worse, the art is crashing the outline of the rectangle, and not in an intentional-seeming way.

but if you wanted to increase the padding, increase the padding here:

.everything {
background-color: white;
margin: 0 auto;
padding: 40px; <---------
width: 800px;
}
     
Mac Elite
Join Date: Oct 2000
Location: Middle of Germany
Status: Offline
Reply With Quote
Jan 4, 2017, 04:49 PM
 
The logo isn't finished yet...

Thanks!
Think a new age is coming.
     
Mac Elite
Join Date: Oct 2000
Location: Middle of Germany
Status: Offline
Reply With Quote
Jan 18, 2017, 08:10 AM
 
Hey,

I have another CSS question: How to create a fixed sidebar?

Like here: Agentur für Corporate Design und Responsive Webdesign in Frankfurt Rhein-Main – finalart design

it is fixed even on the iPad, which is pretty good. It looks nice, how can I do this? I can't find anything on the web, but I'll look.

Greetings,
PeterParker
Think a new age is coming.
     
Moderator
Join Date: Jun 2000
Location: inside 128, north of 90
Status: Online
Reply With Quote
Jan 18, 2017, 08:20 AM
 
do your search on fixed position, and hidden overflow.

Do they have you use Firebug in your class? It is a good way to see what others have done.
     
Mac Elite
Join Date: Oct 2000
Location: Middle of Germany
Status: Offline
Reply With Quote
Yesterday, 10:27 AM
 
No, no Firebug. I'm no trying. I found an article which told me how to create a fixed sidebar in the upper right hand corner. Not what I wanted.

I want a sidebar attached to the original content, to the body, in a way. I'll search "fixed position" and "hidden overflow"...
Think a new age is coming.
     
Mac Elite
Join Date: Oct 2000
Location: Middle of Germany
Status: Offline
Reply With Quote
Yesterday, 03:28 PM
 
Trying around for a while, I somehow managed to solve the problem. I just created two columns, one being fixed and having "float: left", one being the content-column that contains the website. It looks great and works perfectly!
Think a new age is coming.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 09:54 AM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2