New Front EN › Support Forums › Tokyo Theme Support › Header height
- This topic has 20 replies, 3 voices, and was last updated 10 years, 6 months ago by noisesev.
-
AuthorPosts
-
February 6, 2014 at 5:16 am #2480kadoka66Participant
It worked. I had no idea that what I was trying to achieve was this easy. Thank you so much for your help. I have purchased a few themes over the last year all with varying support levels but I have never experienced this kind of excellent support before.
February 6, 2014 at 9:28 pm #2483satoriKeymasterGlad to hear it worked! Thank you for the kind words – and, should you have additional questions, do not hesitate to contact me.
Sincerely,
Andrii / Satori StudioMay 1, 2014 at 8:53 pm #3186noisesevParticipantHi once again Andrii,
Is it possible to manually alter the visible height of the background slider?
Cheers,
Chris
May 3, 2014 at 2:27 pm #3199satoriKeymasterHey Chris,
there’s no setting for that in the Theme Options so far, but you can change it via custom CSS: please try this code –
#background-controls { margin-top: 200px !important; }
you can alter the “200” value to achieve the height you need.
Sincerely,
Andrii / Satori StudioMay 3, 2014 at 4:23 pm #3206noisesevParticipantHi Andrii,
This works. Thanks very much! Is 200px the standard setting? Now I’m wondering how much sense it makes so set an absolute value in view of responsiveness?
Best,
Chris
May 4, 2014 at 7:28 pm #3218satoriKeymasterHey Chris,
the standard value is 310px; the height of the slider does not change depending on the screen in the current version of Tokyo, yet if you’d like it to e.g. become smaller on smaller screens, you can add conditional media queries in CSS, for example:
@media only screen and (max-width: 767px) and (min-width: 480px) { #main #background-controls { margin-top: 100px !important; } }
Sincerely,
Andrii / Satori StudioMay 6, 2014 at 6:20 pm #3233noisesevParticipantHi Andrii,
Could you explain the above code please?
Thanks,
Chris
May 7, 2014 at 12:12 pm #3236satoriKeymasterHey Chris,
the CSS above makes use of the so-called media queries (the first line), which tell the system to apply the styles only given certain width of the screen of the viewing device currently used by the visitor. The second line acts just like in the previous snipped I’ve sent you, telling the background slider area to be 100px in height.
You can find some more information about CSS media queries e.g. here.
Sincerely,
Andrii / Satori StudioMay 7, 2014 at 4:17 pm #3241noisesevParticipantHi Andrii,
Thanks for the information. How did you arrive at those dimensions? Should they not be set relative to the screen resolution?
Cheers,
Chris
May 8, 2014 at 8:13 am #3244satoriKeymasterHey Chris,
if you mean the height of the slider – if we set it to a percentage of screen height, it may lead to undesirable consequences on portrait or landscape screens, thus the only way is to use pixels; CSS does not allow to set height in percentage of screen width. There are not strict rules for the @media breakpoints, in this case they’ve been chosen so as to make the website look good on smaller devices with typical screen sizes.
Sincerely,
Andrii / Satori Studio -
AuthorPosts
- You must be logged in to reply to this topic.