Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS-Selector for page (e.g. for showing logo only on first page) #480

Closed
chvonrohr opened this issue Jun 16, 2017 · 1 comment
Closed

CSS-Selector for page (e.g. for showing logo only on first page) #480

chvonrohr opened this issue Jun 16, 2017 · 1 comment
Labels
CSS Questions about how to do something with CSS

Comments

@chvonrohr
Copy link

chvonrohr commented Jun 16, 2017

Using position:fixed for more complex headers works like a charm.

Unfortunately, it is not possible to use a selector to target elements as headings on specific pages (e.g. first page). My use case is to only show the logo on the first page. I tried to access that element with ::nth-child(1), but as fixed-elements are all the same element (always first), this is not possible.

Is there any way to have distinct classes for the pages (e.g. .page1 .logo { ... }) ?

thx

@liZe liZe added the CSS Questions about how to do something with CSS label Jun 16, 2017
@chvonrohr chvonrohr changed the title CSS-Selector for page (e.g. for showing logo only on first page) -> CSS question CSS-Selector for page (e.g. for showing logo only on first page) Jun 16, 2017
@chvonrohr
Copy link
Author

For now, I change the the header position css from fixedto absolute, to show it only on the first page. But page-specific selectors would help a lot. This issue seems to be a duplicate of #474 tough, so I close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Questions about how to do something with CSS
Projects
None yet
Development

No branches or pull requests

2 participants